Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_object_force.c
| Show First 20 Lines • Show All 1,846 Lines • ▼ Show 20 Lines | static void rna_def_softbody(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "use_self_collision", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_self_collision", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_SoftBodySettings_self_collision_get", | RNA_def_property_boolean_funcs(prop, "rna_SoftBodySettings_self_collision_get", | ||||
| "rna_SoftBodySettings_self_collision_set"); | "rna_SoftBodySettings_self_collision_set"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_ui_text(prop, "Self Collision", "Enable naive vertex ball self collision"); | RNA_def_property_ui_text(prop, "Self Collision", "Enable naive vertex ball self collision"); | ||||
| RNA_def_property_update(prop, 0, "rna_softbody_update"); | RNA_def_property_update(prop, 0, "rna_softbody_update"); | ||||
| prop = RNA_def_property(srna, "collision_group", PROP_POINTER, PROP_NONE); | |||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | |||||
| RNA_def_property_ui_text(prop, "Collision Group", "Limit colliders to this Group"); | |||||
| RNA_def_property_update(prop, 0, "rna_softbody_update"); | |||||
| prop = RNA_def_property(srna, "effector_weights", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "effector_weights", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "effector_weights"); | RNA_def_property_pointer_sdna(prop, NULL, "effector_weights"); | ||||
| RNA_def_property_struct_type(prop, "EffectorWeights"); | RNA_def_property_struct_type(prop, "EffectorWeights"); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Effector Weights", ""); | RNA_def_property_ui_text(prop, "Effector Weights", ""); | ||||
| } | } | ||||
| void RNA_def_object_force(BlenderRNA *brna) | void RNA_def_object_force(BlenderRNA *brna) | ||||
| Show All 10 Lines | |||||