[Bf-blender-cvs] [04617275531] blender-v2.83-release: Fix T75998: Precision of 'Unit Scale' and 'Grid Scale' are mismatched

Richard Antalik noreply at git.blender.org
Mon May 11 07:29:36 CEST 2020


Commit: 0461727553135f4dee29e5888b904835716565c2
Author: Richard Antalik
Date:   Mon May 11 07:23:22 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB0461727553135f4dee29e5888b904835716565c2

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.

===================================================================

M	source/blender/makesrna/intern/rna_scene.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list