Hide "active" checkbox in ui for "fluid" type fluid objects as it's not used by fluidsim.

* Response to report [#24670] Keyframe fluid on/off does not work
This commit is contained in:
Janne Karhu 2010-11-12 14:54:40 +00:00
parent e83ef4efc5
commit 3c4b1c0d60

@ -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':