Hide "active" checkbox in ui for "fluid" type fluid objects as it's not used by fluidsim.
authorJanne Karhu <jhkarh@gmail.com>
Fri, 12 Nov 2010 14:54:40 +0000 (14:54 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Fri, 12 Nov 2010 14:54:40 +0000 (14:54 +0000)
* Response to report [#24670] Keyframe fluid on/off does not work

release/scripts/ui/properties_physics_fluid.py

index 1c371f80f16cf714ecdc82a887fd6ee0a00857ef..177d1c54746a4b0ce3001bb398e5bdc78cd7300c 100644 (file)
@@ -65,11 +65,11 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel, bpy.types.Panel):
                 return
 
             row.prop(fluid, "type")
-            if fluid.type not in ('NONE', 'DOMAIN', 'PARTICLE'):
+            if fluid.type not in ('NONE', 'DOMAIN', 'PARTICLE', 'FLUID'):
                 row.prop(fluid, "use", text="")
 
             layout = layout.column()
-            if fluid.type not in ('NONE', 'DOMAIN', 'PARTICLE'):
+            if fluid.type not in ('NONE', 'DOMAIN', 'PARTICLE', 'FLUID'):
                 layout.active = fluid.use
 
             if fluid.type == 'DOMAIN':