Rigidbody: Allow triangle mesh shapes to deform during simulation
[blender.git] / source / blender / makesrna / intern / rna_rigidbody.c
index 34b0f6a335a02bd467b885c3a69544550de0e0ed..58fc9ab25d4dc8ee7ba6062b0fb22380ce12c9b5 100644 (file)
@@ -804,6 +804,11 @@ static void rna_def_rigidbody_object(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "Kinematic", "Allow rigid body to be controlled by the animation system");
        RNA_def_property_update(prop, NC_OBJECT | ND_POINTCACHE, "rna_RigidBodyOb_reset");
        
+       prop = RNA_def_property(srna, "use_deform", PROP_BOOLEAN, PROP_NONE);
+       RNA_def_property_boolean_sdna(prop, NULL, "flag", RBO_FLAG_USE_DEFORM);
+       RNA_def_property_ui_text(prop, "Deforming", "Rigid body deforms during simulation");
+       RNA_def_property_update(prop, NC_OBJECT | ND_POINTCACHE, "rna_RigidBodyOb_reset");
+       
        /* Physics Parameters */
        prop = RNA_def_property(srna, "mass", PROP_FLOAT, PROP_UNIT_MASS);
        RNA_def_property_float_sdna(prop, NULL, "mass");