diff options
author | William Reynish <billrey@me.com> | 2019-02-18 06:56:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-18 07:04:23 +0300 |
commit | 5bd98785976d1183d17536a3cdda79fb758fef87 (patch) | |
tree | fa913b34999317f3bfce074729c75bcbf6027637 /source/blender/makesrna/intern/rna_object_force.c | |
parent | 61a9f41cf5285cea60106a441d08172b5f9ec0df (diff) |
RNA: use distance units
Diffstat (limited to 'source/blender/makesrna/intern/rna_object_force.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_object_force.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c index af5c6675009..a161a4a79dd 100644 --- a/source/blender/makesrna/intern/rna_object_force.c +++ b/source/blender/makesrna/intern/rna_object_force.c @@ -1264,13 +1264,13 @@ static void rna_def_field(BlenderRNA *brna) 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"); - prop = RNA_def_property(srna, "distance_min", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "distance_min", PROP_FLOAT, PROP_DISTANCE); RNA_def_property_float_sdna(prop, NULL, "mindist"); 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_update(prop, 0, "rna_FieldSettings_update"); - prop = RNA_def_property(srna, "distance_max", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "distance_max", PROP_FLOAT, PROP_DISTANCE); RNA_def_property_float_sdna(prop, NULL, "maxdist"); RNA_def_property_range(prop, 0.0f, FLT_MAX); RNA_def_property_ui_range(prop, 0.0f, 1000.0f, 1.0f, 3); @@ -1639,7 +1639,7 @@ static void rna_def_softbody(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Collision Type", "Choose Collision Type"); RNA_def_property_update(prop, 0, "rna_softbody_update"); - prop = RNA_def_property(srna, "ball_size", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "ball_size", PROP_FLOAT, PROP_DISTANCE); RNA_def_property_float_sdna(prop, NULL, "colball"); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); /* code is not ready for that yet */ RNA_def_property_range(prop, -10.0f, 10.0f); |