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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user