Fix T75998: Precision of 'Unit Scale' and 'Grid Scale' are mismatched

Change hard limits of scale_length RNA property to 1e-9 - 1e+9.
This makes it easier to work with small or large metric units.
This commit is contained in:
Richard Antalik 2020-05-11 07:23:22 +02:00
parent eaee2b4119
commit 0461727553
Notes: blender-bot 2023-02-14 11:21:43 +01:00
Referenced by issue #75998, Precision of 'Unit Scale' and 'Grid Scale' are mismatched
1 changed files with 1 additions and 1 deletions

View File

@ -3843,7 +3843,7 @@ static void rna_def_unit_settings(BlenderRNA *brna)
"Scale to use when converting between blender units and dimensions."
" When working at microscopic or astronomical scale, a small or large unit scale"
" respectively can be used to avoid numerical precision problems");
RNA_def_property_range(prop, 0.00001, 100000.0);
RNA_def_property_range(prop, 1e-9f, 1e+9f);
RNA_def_property_ui_range(prop, 0.001, 100.0, 0.1, 6);
RNA_def_property_update(prop, NC_WINDOW, NULL);