Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Antalik <richardantalik@gmail.com>2020-05-11 08:23:22 +0300
committerRichard Antalik <richardantalik@gmail.com>2020-05-11 08:23:22 +0300
commit0461727553135f4dee29e5888b904835716565c2 (patch)
tree5826be52caad5fb1549c2fc35359a9955a632fb5 /source/blender/makesrna/intern/rna_scene.c
parenteaee2b4119359493b87422100e913a5e1dc9a001 (diff)
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.
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index a19bbdcc369..ac57d7a1b18 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -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);