diff options
author | Thomas Dinges <blender@dingto.org> | 2013-01-23 15:40:35 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-01-23 15:40:35 +0400 |
commit | be21034ae4a235f9a9dbc311fc2fd2f9e91367fe (patch) | |
tree | 8f265f07bb32c06fe16af76b5bd6534324bc2528 /release/scripts/startup/bl_ui/properties_scene.py | |
parent | 5412d00310119ff45942d9d522f972e3e4a4c726 (diff) |
UI / Layout scripts:
* Code cleanup for new Rigid Body panels.
* Removed some unneeded split() calls.
* Remove redundant check for "ob.rigid_body_constraint" in the draw() function of the "Rigid Body Constraint" panel. The check is already made in the poll.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_scene.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_scene.py | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py index afd9632b207..e0f4fd1f75b 100644 --- a/release/scripts/startup/bl_ui/properties_scene.py +++ b/release/scripts/startup/bl_ui/properties_scene.py @@ -272,25 +272,24 @@ class SCENE_PT_rigid_body_world(SceneButtonsPanel, Panel): if rbw is None: layout.operator("rigidbody.world_add") else: - col = layout.column() - col.operator("rigidbody.world_remove") + layout.operator("rigidbody.world_remove") col = layout.column() col.active = rbw.enabled - colsub = col.column() - colsub.prop(rbw, "group") - colsub.prop(rbw, "constraints") + col = col.column() + col.prop(rbw, "group") + col.prop(rbw, "constraints") split = col.split() - colsub = split.column() - colsub.prop(rbw, "time_scale", text="Speed") - colsub.prop(rbw, "use_split_impulse") + col = split.column() + col.prop(rbw, "time_scale", text="Speed") + col.prop(rbw, "use_split_impulse") - colsub = split.column() - colsub.prop(rbw, "steps_per_second", text="Steps Per Second") - colsub.prop(rbw, "num_solver_iterations", text="Solver Iterations") + col = split.column() + col.prop(rbw, "steps_per_second", text="Steps Per Second") + col.prop(rbw, "num_solver_iterations", text="Solver Iterations") class SCENE_PT_rigid_body_cache(SceneButtonsPanel, Panel): |