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>2013-01-23 11:42:28 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-23 11:42:28 +0400
commit6b51bb39c83561004e9c3ac06e2c02ce44d3b54e (patch)
treecb80bf453e8b70a56329a3904e3c26d57f56eb9a /release/scripts/startup/bl_ui/properties_physics_rigidbody.py
parent69ddc5eb99d36c7d2cf86a7537a3784d3c72777e (diff)
move rigidbody toggle into the header for scene and objects.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_rigidbody.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_physics_rigidbody.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_rigidbody.py b/release/scripts/startup/bl_ui/properties_physics_rigidbody.py
index 87a4c2fdbee..218d4bebeed 100644
--- a/release/scripts/startup/bl_ui/properties_physics_rigidbody.py
+++ b/release/scripts/startup/bl_ui/properties_physics_rigidbody.py
@@ -35,7 +35,13 @@ class PHYSICS_PT_rigid_body(PHYSICS_PT_rigidbody_panel, Panel):
ob = context.object
rd = context.scene.render
return (ob and ob.rigid_body and (not rd.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
@@ -46,7 +52,6 @@ class PHYSICS_PT_rigid_body(PHYSICS_PT_rigidbody_panel, Panel):
layout.prop(rbo, "type", text="Type")
row = layout.row()
- row.prop(rbo, "enabled");
row.prop(rbo, "kinematic", text="Animated")
if rbo.type == 'ACTIVE':