Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_object_force.c
| Show First 20 Lines • Show All 970 Lines • ▼ Show 20 Lines | static void rna_def_effector_weight(BlenderRNA *brna) | ||||
| /* Flags */ | /* Flags */ | ||||
| prop = RNA_def_property(srna, "apply_to_hair_growing", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "apply_to_hair_growing", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", EFF_WEIGHT_DO_HAIR); | RNA_def_property_boolean_sdna(prop, NULL, "flag", EFF_WEIGHT_DO_HAIR); | ||||
| RNA_def_property_ui_text(prop, "Use For Growing Hair", "Use force fields when growing hair"); | RNA_def_property_ui_text(prop, "Use For Growing Hair", "Use force fields when growing hair"); | ||||
| RNA_def_property_update(prop, 0, "rna_EffectorWeight_update"); | RNA_def_property_update(prop, 0, "rna_EffectorWeight_update"); | ||||
| /* General */ | /* General */ | ||||
| prop = RNA_def_property(srna, "group", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "group", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "Collection"); | |||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Effector Group", "Limit effectors to this Group"); | RNA_def_property_ui_text(prop, "Effector Collection", "Limit effectors to this collection"); | ||||
| RNA_def_property_update(prop, 0, "rna_EffectorWeight_dependency_update"); | RNA_def_property_update(prop, 0, "rna_EffectorWeight_dependency_update"); | ||||
| prop = RNA_def_property(srna, "gravity", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "gravity", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "global_gravity"); | RNA_def_property_float_sdna(prop, NULL, "global_gravity"); | ||||
| RNA_def_property_range(prop, -200.0f, 200.0f); | RNA_def_property_range(prop, -200.0f, 200.0f); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.1, 3); | RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.1, 3); | ||||
| RNA_def_property_ui_text(prop, "Gravity", "Global gravity weight"); | RNA_def_property_ui_text(prop, "Gravity", "Global gravity weight"); | ||||
| RNA_def_property_update(prop, 0, "rna_EffectorWeight_update"); | RNA_def_property_update(prop, 0, "rna_EffectorWeight_update"); | ||||
| ▲ Show 20 Lines • Show All 768 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); | prop = RNA_def_property(srna, "collision_group", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "Collection"); | |||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Collision Group", "Limit colliders to this Group"); | RNA_def_property_ui_text(prop, "Collision Collection", "Limit colliders to this collection"); | ||||
| RNA_def_property_update(prop, 0, "rna_softbody_dependency_update"); | RNA_def_property_update(prop, 0, "rna_softbody_dependency_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", ""); | ||||
| } | } | ||||
| Show All 11 Lines | |||||