diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-23 11:42:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-23 11:42:28 +0400 |
commit | 6b51bb39c83561004e9c3ac06e2c02ce44d3b54e (patch) | |
tree | cb80bf453e8b70a56329a3904e3c26d57f56eb9a /release/scripts/startup/bl_ui/properties_scene.py | |
parent | 69ddc5eb99d36c7d2cf86a7537a3784d3c72777e (diff) |
move rigidbody toggle into the header for scene and objects.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_scene.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_scene.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py index 73de00fdd40..3654f70709c 100644 --- a/release/scripts/startup/bl_ui/properties_scene.py +++ b/release/scripts/startup/bl_ui/properties_scene.py @@ -252,10 +252,16 @@ class SCENE_PT_rigid_body_world(SceneButtonsPanel, Panel): @classmethod def poll(cls, context): - rd = context.scene.render scene = context.scene + rd = scene.render return scene and (rd.engine in cls.COMPAT_ENGINES) + def draw_header(self, context): + scene = context.scene + rbw = scene.rigidbody_world + if rbw is not None: + self.layout.prop(rbw, "enabled", text="") + def draw(self, context): layout = self.layout @@ -268,8 +274,6 @@ class SCENE_PT_rigid_body_world(SceneButtonsPanel, Panel): else: split = layout.split() split.operator("rigidbody.world_remove") - layout.separator() - layout.prop(context.scene.rigidbody_world, "enabled") layout.active = rbw.enabled col = layout.column() |