Fix (irc-reported by @sergey) invalid precision value in a float RNA property.

Maximum allowed UI float precision value is 6 (which means 7 digits).

Will change code checking on that in next commit.
This commit is contained in:
Bastien Montagne 2017-09-18 19:18:02 +02:00
parent d486b17088
commit 785e96a11d
Notes: blender-bot 2023-02-14 10:29:32 +01:00
Referenced by issue #53683, 2.79a release
1 changed files with 1 additions and 1 deletions

View File

@ -1974,7 +1974,7 @@ static void rna_def_modifier_boolean(BlenderRNA *brna)
prop = RNA_def_property(srna, "double_threshold", PROP_FLOAT, PROP_DISTANCE);
RNA_def_property_float_sdna(prop, NULL, "double_threshold");
RNA_def_property_range(prop, 0, 1.0f);
RNA_def_property_ui_range(prop, 0, 1, 0.0001, 7);
RNA_def_property_ui_range(prop, 0, 1, 0.0001, 6);
RNA_def_property_ui_text(prop, "Overlap Threshold", "Threshold for checking overlapping geometry");
RNA_def_property_update(prop, 0, "rna_Modifier_update");
}