[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54723] trunk/blender/release/scripts/ startup/bl_ui/properties_physics_rigidbody.py: rigidbody: Move "Enabled" checkbox out of rigid body panel header

Sergej Reich sergej.reich at googlemail.com
Thu Feb 21 20:04:34 CET 2013


Revision: 54723
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54723
Author:   sergof
Date:     2013-02-21 19:04:34 +0000 (Thu, 21 Feb 2013)
Log Message:
-----------
rigidbody: Move "Enabled" checkbox out of rigid body panel header

Rename it to "Dynamic" to make it more obvious that it switches between
static and dynamic state.
Also don't show it for passive rigid bodies since it's redundant in that
case.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_physics_rigidbody.py

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_physics_rigidbody.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_physics_rigidbody.py	2013-02-21 18:30:11 UTC (rev 54722)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_physics_rigidbody.py	2013-02-21 19:04:34 UTC (rev 54723)
@@ -36,12 +36,6 @@
         return (obj and obj.rigid_body and
                 (not context.scene.render.use_game_engine))
 
-    def draw_header(self, context):
-        obj = context.object
-        rbo = obj.rigid_body
-        if rbo is not None:
-            self.layout.prop(rbo, "enabled", text="")
-
     def draw(self, context):
         layout = self.layout
 
@@ -50,7 +44,10 @@
 
         if rbo is not None:
             layout.prop(rbo, "type", text="Type")
-            layout.prop(rbo, "kinematic", text="Animated")
+            row = layout.row()
+            if rbo.type == 'ACTIVE':
+                row.prop(rbo, "enabled", text="Dynamic")
+            row.prop(rbo, "kinematic", text="Animated")
 
             if rbo.type == 'ACTIVE':
                 layout.prop(rbo, "mass")




More information about the Bf-blender-cvs mailing list