Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/rigidbody_object.c
| Show First 20 Lines • Show All 548 Lines • ▼ Show 20 Lines | void RIGIDBODY_OT_mass_calculate(wmOperatorType *ot) | ||||
| RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE); | RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE); | ||||
| RNA_def_float(ot->srna, | RNA_def_float(ot->srna, | ||||
| "density", | "density", | ||||
| 1.0, | 1.0, | ||||
| FLT_MIN, | FLT_MIN, | ||||
| FLT_MAX, | FLT_MAX, | ||||
| "Density", | "Density", | ||||
| "Custom density value (kg/m^3) to use instead of material preset", | "Density value (kg/m^3), allows custom value if the 'Custom' preset is used", | ||||
| 1.0f, | 1.0f, | ||||
| 2500.0f); | 2500.0f); | ||||
| } | } | ||||
| /* ********************************************** */ | /* ********************************************** */ | ||||