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:
authorSergej Reich <sergej.reich@googlemail.com>2013-12-26 20:02:28 +0400
committerSergej Reich <sergej.reich@googlemail.com>2013-12-26 21:38:05 +0400
commit2260a7dbc0b6150489832dd94160512d1760fb00 (patch)
tree9427bbe06c1cb5cfeae643883408e46021742a9a /release/scripts/startup/bl_ui/properties_physics_rigidbody.py
parent55397c690decac67f941f565af2155116b0e6a99 (diff)
Rigidbody: Add option to choose mesh source for collision shapes
The options are: Base: Base mesh Deform: shape keys and deform modifiers Final: All deformations and modifiers It would be nice to have a way of specifying where exactly in the modifier stack the collision shape is generated. However this is not staight forward since the rigid body simulation is not part of the modifier system and would require hacks to make it work.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_rigidbody.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_physics_rigidbody.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_rigidbody.py b/release/scripts/startup/bl_ui/properties_physics_rigidbody.py
index cd701178976..7a6c8e0a066 100644
--- a/release/scripts/startup/bl_ui/properties_physics_rigidbody.py
+++ b/release/scripts/startup/bl_ui/properties_physics_rigidbody.py
@@ -70,6 +70,9 @@ class PHYSICS_PT_rigid_body_collisions(PHYSICS_PT_rigidbody_panel, Panel):
layout.prop(rbo, "collision_shape", text="Shape")
+ if rbo.collision_shape in {'MESH', 'CONVEX_HULL'}:
+ layout.prop(rbo, "mesh_source", text="Source")
+
split = layout.split()
col = split.column()