Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 'Nonetype has no attribute to_struct' when FLIP Fluids object is a Text Object Type #556

Closed
luckychris opened this issue Sep 6, 2021 · 5 comments
Labels

Comments

@luckychris
Copy link

luckychris commented Sep 6, 2021

happens in Blender 3.0 alpha and 2.92 and 2.93 as well

image
image

image

@luckychris
Copy link
Author

you can checkout and reproduce the error with this blend file: https://www.dropbox.com/s/rxwa82or6gw0zwr/ff_bug.blend?dl=0

@luckychris
Copy link
Author

system console output:

Traceback (most recent call last):
File "/Users/c/Library/Application Support/Blender/3.0/scripts/addons/flip_fluids_addon/bake.py", line 2441, in bake
__launch_bake(datafile, cache_directory, bakedata, savestate_id)
File "/Users/c/Library/Application Support/Blender/3.0/scripts/addons/flip_fluids_addon/bake.py", line 2428, in __launch_bake
__initialize_fluid_simulation(fluidsim, data, cache_directory, bakedata, savestate_id)
File "/Users/c/Library/Application Support/Blender/3.0/scripts/addons/flip_fluids_addon/bake.py", line 1368, in __initialize_fluid_simulation
data.force_field_objects = __add_force_field_objects(fluidsim, data, bakedata)
File "/Users/c/Library/Application Support/Blender/3.0/scripts/addons/flip_fluids_addon/bake.py", line 1341, in __add_force_field_objects
field_object.update_mesh_static(mesh)
File "/Users/c/Library/Application Support/Blender/3.0/scripts/addons/flip_fluids_addon/pyfluid/forcefield.py", line 42, in update_mesh_static
mesh_struct = mesh.to_struct()
AttributeError: 'NoneType' object has no attribute 'to_struct'

SIMULATION TERMINATED DUE TO ERROR:
'NoneType' object has no attribute 'to_struct'

Thank you for using FLIP Fluids!

@rlguy rlguy changed the title Just downloaded FF v1.1.0 and got this error: Nonetype has no attribute to_struct Error: 'Nonetype has no attribute to_struct' when FLIP Fluids object is a Text Object Type Sep 6, 2021
@rlguy rlguy added the bug label Sep 6, 2021
@rlguy
Copy link
Owner

rlguy commented Sep 6, 2021

Thanks for the report! I am able to reproduce the issue.

The FLIP Fluid Volume Force type object (as well as Inflow/Outflow/Fluid/Obstacle) must be a Blender 'MESH' type object and this is what is causing the error. It looks like there is a bug that is causing a 'TEXT' type object to be able to be accepted as a FLIP Fluid object type where this is not supported.

Until this issue is fixed, a workaround can be to convert this object to a 'MESH' type object:

image

@luckychris
Copy link
Author

thanks for your fast answer. Yes, indeed, converting to mesh helps.

@rlguy
Copy link
Owner

rlguy commented Sep 6, 2021

This issue has been fixed and will be available in the next experimental release on September 17, 2021.

If a text type object is set to a FLIP Fluid object type, a popup error will be displayed:

image

Popup windows will now be displayed for other unsupported object types as well: Metaballs, Fonts, Volumes, Armature Bones, Lights, Light Probes, Grease Pencils, Lattices, Cameras, and Speakers.

@rlguy rlguy closed this as completed Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants