Rigidbody: Allow triangle mesh shapes to deform during simulation

Only supported when using the "Deform" mesh source.
This commit is contained in:
2013-12-26 18:15:56 +01:00
parent c96601138d
commit ceb2430dd7
6 changed files with 47 additions and 1 deletions

View File

@@ -73,6 +73,9 @@ class PHYSICS_PT_rigid_body_collisions(PHYSICS_PT_rigidbody_panel, Panel):
if rbo.collision_shape in {'MESH', 'CONVEX_HULL'}:
layout.prop(rbo, "mesh_source", text="Source")
if rbo.collision_shape == 'MESH' and rbo.mesh_source == 'DEFORM':
layout.prop(rbo, "use_deform", text="Deforming")
split = layout.split()
col = split.column()