Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_object_force.c
| Show First 20 Lines • Show All 1,260 Lines • ▼ Show 20 Lines | static void rna_def_field(BlenderRNA *brna) | ||||
| RNA_def_property_float_sdna(prop, NULL, "f_size"); | RNA_def_property_float_sdna(prop, NULL, "f_size"); | ||||
| RNA_def_property_range(prop, 0.0f, 1000.0f); | RNA_def_property_range(prop, 0.0f, 1000.0f); | ||||
| RNA_def_property_ui_text(prop, "Rest Length", "Rest length of the harmonic force"); | RNA_def_property_ui_text(prop, "Rest Length", "Rest length of the harmonic force"); | ||||
| RNA_def_property_update(prop, 0, "rna_FieldSettings_update"); | RNA_def_property_update(prop, 0, "rna_FieldSettings_update"); | ||||
| prop = RNA_def_property(srna, "falloff_power", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "falloff_power", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "f_power"); | RNA_def_property_float_sdna(prop, NULL, "f_power"); | ||||
| RNA_def_property_range(prop, 0.0f, 10.0f); | RNA_def_property_range(prop, 0.0f, 10.0f); | ||||
| RNA_def_property_ui_text(prop, "Falloff Power", ""); | RNA_def_property_ui_text(prop, "Falloff Power", "How quickly strength falls off with distance from the force field"); | ||||
| RNA_def_property_update(prop, 0, "rna_FieldSettings_update"); | RNA_def_property_update(prop, 0, "rna_FieldSettings_update"); | ||||
| prop = RNA_def_property(srna, "distance_min", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "distance_min", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "mindist"); | RNA_def_property_float_sdna(prop, NULL, "mindist"); | ||||
| RNA_def_property_range(prop, 0.0f, 1000.0f); | RNA_def_property_range(prop, 0.0f, 1000.0f); | ||||
| RNA_def_property_ui_text(prop, "Minimum Distance", "Minimum distance for the field's fall-off"); | RNA_def_property_ui_text(prop, "Minimum Distance", "Minimum distance for the field's fall-off"); | ||||
| RNA_def_property_update(prop, 0, "rna_FieldSettings_update"); | RNA_def_property_update(prop, 0, "rna_FieldSettings_update"); | ||||
| ▲ Show 20 Lines • Show All 531 Lines • Show Last 20 Lines | |||||