diff options
author | Antonioya <blendergit@gmail.com> | 2018-10-05 00:27:34 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-10-05 00:27:34 +0300 |
commit | 3a1e9b9997e33c059d08138da707ac16490fddf7 (patch) | |
tree | 770b8bf9c30d10ee4a0866e7f62b5e4cf23f79bc /source/blender/makesrna/intern/rna_space.c | |
parent | 65f77ccea1645f8c66fc171377641b08b62010e0 (diff) |
GP: Move grid parameters to GP object data level
The grid now can be configured by object because this helps to identify objects and allows to define diferent grid parameters for each objects.
Also added a color option.
Diffstat (limited to 'source/blender/makesrna/intern/rna_space.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index fdf16ce37de..6fdfd06a9a0 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -310,14 +310,6 @@ const EnumPropertyItem rna_enum_file_sort_items[] = { {0, NULL, 0, NULL, NULL} }; -static const EnumPropertyItem rna_enum_gpencil_grid_axis_items[] = { - {V3D_GP_GRID_AXIS_LOCK, "LOCK", 0, "Drawing Plane", "Use current drawing locked axis" }, - {V3D_GP_GRID_AXIS_X, "X", 0, "Y-Z", ""}, - {V3D_GP_GRID_AXIS_Y, "Y", 0, "X-Z", ""}, - {V3D_GP_GRID_AXIS_Z, "Z", 0, "X-Y", ""}, - {0, NULL, 0, NULL, NULL} -}; - #ifdef RNA_RUNTIME #include "DNA_anim_types.h" @@ -2961,26 +2953,6 @@ static void rna_def_space_view3d_overlay(BlenderRNA *brna) "Display a grid over grease pencil paper"); RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); - prop = RNA_def_property(srna, "gpencil_grid_scale", PROP_FLOAT, PROP_XYZ); - RNA_def_property_float_sdna(prop, NULL, "overlay.gpencil_grid_scale"); - RNA_def_property_range(prop, 0.01f, FLT_MAX); - RNA_def_property_float_default(prop, 1.0f); - RNA_def_property_ui_text(prop, "Scale", "Grid scale"); - RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); - - 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, 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); - - prop = RNA_def_property(srna, "gpencil_grid_axis", PROP_ENUM, PROP_NONE); - RNA_def_property_enum_sdna(prop, NULL, "overlay.gpencil_grid_axis"); - RNA_def_property_enum_items(prop, rna_enum_gpencil_grid_axis_items); - RNA_def_property_ui_text(prop, "Canvas Plane", "Axis to display grid"); - RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); - prop = RNA_def_property(srna, "gpencil_grid_opacity", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "overlay.gpencil_grid_opacity"); RNA_def_property_range(prop, 0.1f, 1.0f); |