diff options
author | Antonioya <blendergit@gmail.com> | 2018-10-03 23:14:38 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-10-03 23:14:56 +0300 |
commit | 77def38eab8dd844044ae7ae6d652ad4ea6b9b83 (patch) | |
tree | e1345a521f880e079b285a3b573752503dba7f74 /source/blender/makesrna/intern/rna_space.c | |
parent | 77787310ad82e50ea7d1b8c9fc6387eef468d250 (diff) |
GP: Allow 0 subdivisions for canvas grid
Diffstat (limited to 'source/blender/makesrna/intern/rna_space.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 3fa020494a2..d067088ec4b 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -2970,7 +2970,7 @@ static void rna_def_space_view3d_overlay(BlenderRNA *brna) prop = RNA_def_property(srna, "gpencil_grid_lines", PROP_INT, PROP_NONE); RNA_def_property_int_sdna(prop, NULL, "overlay.gpencil_grid_lines"); - RNA_def_property_range(prop, 1, INT_MAX); + RNA_def_property_range(prop, 0, INT_MAX); RNA_def_property_int_default(prop, GP_DEFAULT_GRID_LINES); RNA_def_property_ui_text(prop, "Subdivisions", "Number of subdivisions in each side of symmetry line"); RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); |