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:
authorThomas Dinges <blender@dingto.org>2013-01-23 15:40:35 +0400
committerThomas Dinges <blender@dingto.org>2013-01-23 15:40:35 +0400
commitbe21034ae4a235f9a9dbc311fc2fd2f9e91367fe (patch)
tree8f265f07bb32c06fe16af76b5bd6534324bc2528 /release/scripts/startup/bl_ui/properties_physics_rigidbody.py
parent5412d00310119ff45942d9d522f972e3e4a4c726 (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.py8
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")