Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-09-21 20:31:37 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-09-21 20:31:37 +0400
commit0c7285b9aeab6583407cd6ec213eecbdf5197bc2 (patch)
tree29fe8d2bbf020e68ed60ef429fa871867e08ff74 /release
parent109edc544c364c118c16e63a7fd86a455be4fe3f (diff)
minor UI change so blender built without fluids wont give a python error
Diffstat (limited to 'release')
-rw-r--r--release/scripts/ui/properties_physics_fluid.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/ui/properties_physics_fluid.py b/release/scripts/ui/properties_physics_fluid.py
index 48539a06ee3..1c371f80f16 100644
--- a/release/scripts/ui/properties_physics_fluid.py
+++ b/release/scripts/ui/properties_physics_fluid.py
@@ -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="")