Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_object_force.c
| Show First 20 Lines • Show All 1,270 Lines • ▼ Show 20 Lines | static void rna_def_effector_weight(BlenderRNA *brna) | ||||
| 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, "collection", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "collection", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "Collection"); | RNA_def_property_struct_type(prop, "Collection"); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "group"); | RNA_def_property_pointer_sdna(prop, NULL, "group"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_REFCOUNT); | ||||
| RNA_def_property_ui_text(prop, "Effector Collection", "Limit effectors to this collection"); | 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"); | ||||
| ▲ Show 20 Lines • Show All 893 Lines • Show Last 20 Lines | |||||