Rigidbody: Add option to choose mesh source for collision shapes
[blender.git] / release / scripts / startup / bl_ui / properties_physics_rigidbody.py
index cd701178976c985b3e69e19525731484678a79c9..7a6c8e0a066ca47af06d6686a8a138de5d8fb493 100644 (file)
@@ -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()