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_physics_rigidbody.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_physics_rigidbody.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_rigidbody.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_rigidbody.py b/release/scripts/startup/bl_ui/properties_physics_rigidbody.py index afc654f30be..f335c560f7b 100644 --- a/release/scripts/startup/bl_ui/properties_physics_rigidbody.py +++ b/release/scripts/startup/bl_ui/properties_physics_rigidbody.py @@ -50,13 +50,10 @@ class PHYSICS_PT_rigid_body(PHYSICS_PT_rigidbody_panel, Panel): if rbo is not None: layout.prop(rbo, "type", text="Type") - - row = layout.row() - row.prop(rbo, "kinematic", text="Animated") + layout.prop(rbo, "kinematic", text="Animated") if rbo.type == 'ACTIVE': - col = layout.column() - col.prop(rbo, "mass") + layout.prop(rbo, "mass") class PHYSICS_PT_rigid_body_collisions(PHYSICS_PT_rigidbody_panel, Panel): @@ -91,6 +88,7 @@ class PHYSICS_PT_rigid_body_collisions(PHYSICS_PT_rigidbody_panel, Panel): sub = col.column() sub.active = rbo.use_margin sub.prop(rbo, "collision_margin", text="Margin") + layout.prop(rbo, "collision_groups") |