[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27473] trunk/blender/release/scripts/ui/ properties_physics_softbody.py: enable basic soft body object options for
Jens Ole Wund (bjornmose)
bjornmose at gmx.net
Sat Mar 13 23:53:03 CET 2010
Revision: 27473
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27473
Author: bjornmose
Date: 2010-03-13 23:53:03 +0100 (Sat, 13 Mar 2010)
Log Message:
-----------
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
Modified Paths:
--------------
trunk/blender/release/scripts/ui/properties_physics_softbody.py
Modified: trunk/blender/release/scripts/ui/properties_physics_softbody.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_physics_softbody.py 2010-03-13 21:22:56 UTC (rev 27472)
+++ trunk/blender/release/scripts/ui/properties_physics_softbody.py 2010-03-13 22:53:03 UTC (rev 27473)
@@ -38,9 +38,12 @@
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):
bl_label = "Soft Body"
More information about the Bf-blender-cvs
mailing list