diff options
author | Jens Ole Wund <bjornmose@gmx.net> | 2010-03-14 01:53:03 +0300 |
---|---|---|
committer | Jens Ole Wund <bjornmose@gmx.net> | 2010-03-14 01:53:03 +0300 |
commit | ed930c48186d72b79ce6f1139f7db65759a40f42 (patch) | |
tree | 9623be3a7c4a2dc49b837104ea52e2d04f280533 /release | |
parent | c56f04d349d0d09a62a850ab4c042e9bafa047c6 (diff) |
enable basic soft body object options for
soft body aware objects as there are lattices and curves
since this is foreign terrain for me .. please check
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/ui/properties_physics_softbody.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/ui/properties_physics_softbody.py b/release/scripts/ui/properties_physics_softbody.py index 8a59e087dc3..ed4c24b29b3 100644 --- a/release/scripts/ui/properties_physics_softbody.py +++ b/release/scripts/ui/properties_physics_softbody.py @@ -38,7 +38,10 @@ class PhysicButtonsPanel(bpy.types.Panel): def poll(self, context): ob = context.object rd = context.scene.render - return (ob and ob.type == 'MESH') and (not rd.use_game_engine) +# return (ob and ob.type == 'MESH') and (not rd.use_game_engine) +# i really hate touching things i do not understand completely .. but i think this should read (bjornmose) + return (ob and (ob.type == 'MESH' or ob.type == 'LATTICE'or ob.type == 'CURVE')) and (not rd.use_game_engine) + class PHYSICS_PT_softbody(PhysicButtonsPanel): |