[Bf-blender-cvs] [d79f679] master: Fix T42237: Added a soft limit to 3D view grid scale; a value of 0.0 can otherwise give 0.0 object scale.

Lukas Tönne noreply at git.blender.org
Wed Oct 15 10:16:23 CEST 2014


Commit: d79f679896dffd5cfe0dc169ea021e63e6d671ba
Author: Lukas Tönne
Date:   Wed Oct 15 10:11:31 2014 +0200
Branches: master
https://developer.blender.org/rBd79f679896dffd5cfe0dc169ea021e63e6d671ba

Fix T42237: Added a soft limit to 3D view grid scale; a value of 0.0
can otherwise give 0.0 object scale.

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

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

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

diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 5ca38aa..a314e99 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -1944,6 +1944,7 @@ static void rna_def_space_view3d(BlenderRNA *brna)
 	RNA_def_property_float_sdna(prop, NULL, "grid");
 	RNA_def_property_ui_text(prop, "Grid Scale", "Distance between 3D View grid lines");
 	RNA_def_property_range(prop, 0.0f, FLT_MAX);
+	RNA_def_property_ui_range(prop, 0.001f, 1000.0f, 0.1f, 3);
 	RNA_def_property_float_default(prop, 1.0f);
 	RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);




More information about the Bf-blender-cvs mailing list