minor UI change so blender built without fluids wont give a python error

This commit is contained in:
Campbell Barton
2010-09-21 16:31:37 +00:00
parent 109edc544c
commit 0c7285b9ae

View File

@@ -60,6 +60,10 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel, bpy.types.Panel):
if md:
row = layout.row()
if fluid is None:
row.label("built without fluids")
return
row.prop(fluid, "type")
if fluid.type not in ('NONE', 'DOMAIN', 'PARTICLE'):
row.prop(fluid, "use", text="")