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:
authorLukas Tönne <lukas.toenne@gmail.com>2014-10-15 12:11:31 +0400
committerLukas Tönne <lukas.toenne@gmail.com>2014-10-15 12:16:11 +0400
commitd79f679896dffd5cfe0dc169ea021e63e6d671ba (patch)
treed740ccada73b84f12a822535c3eb9068d7ebf3fe
parent858e7b2f84287360c1d82a381c023569a43cb57f (diff)
Fix T42237: Added a soft limit to 3D view grid scale; a value of 0.0
can otherwise give 0.0 object scale.
-rw-r--r--source/blender/makesrna/intern/rna_space.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 5ca38aae9bc..a314e995ba3 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);