Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
target object for fluid inflow objects not deleted #405
Blender Version (including hash): 2.79b f4dcdf9d68b
Describe the bug
If you add a Fluid object and make it the Target Object for a fluid Inflow object, when you delete the Fluid object (I right clicked on it in the Outliner and deleted it) it's not deleted. It's removed from the 3d view but when you run the simulation again its fluid is generated again. You can also see it in the Outliner under Blender File and Data-Blocks under Objects. Although it's not displayed in the All Scenes list in the Outliner. The Target Object could also be an Empty, or probably anything.
After you delete the object from the Inflow's Target Object field then it goes away.
Create an Inflow object, make its Target Object be some other object, then delete that other object and look for the Target Object in the Outliner under Blender File -> Objects.
If you add an Empty, then add an Icosphere and a Cube, then add a Rigid Body constraint to the Empty then make the Icosphere its Object 1 and the Cube its Object 2, you can then delete either or both of them and they're deleted (you may need to save the blend file and then quit and reopen it). With Flip Fluids the expected behavior would be for the Inflow's Target Object to be fully deleted without first needing to delete from the Inflow panel's Target Object field.
The Inflow's Target Object is only partially deleted.
Thanks for the report! That is interesting behaviour and I did not think of this case. The problem is that the addon is looking through all of the objects in the .blend file data when it should actually only be looking through the objects in the scene. This should be easy to resolve, and I'll update this issue when it's fixed!