Fix T42237: Added a soft limit to 3D view grid scale; a value of 0.0

can otherwise give 0.0 object scale.
This commit is contained in:
Lukas Tönne 2014-10-15 10:11:31 +02:00
parent 858e7b2f84
commit d79f679896
Notes: blender-bot 2023-02-14 11:28:39 +01:00
Referenced by issue #42237, Zero Scale Grid Lines = Zero radius new objects (by default)
1 changed files with 1 additions and 0 deletions

View File

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