diff options
author | Antonioya <blendergit@gmail.com> | 2018-11-04 15:00:19 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-11-04 15:00:37 +0300 |
commit | 5cfcee8c393de6781423c9ef83716c94237fddfd (patch) | |
tree | ee6722664cc4f00c0f79058de878030ae42afdc6 /source/blender/makesrna/intern/rna_gpencil.c | |
parent | d3c815bd0831f46c18bb4bddc9f290b5f47e2c45 (diff) |
GP: Reorganize Canvas Grid
Now the grid is always controlled by the topbar selector and not in the canvas panel. To have two places to define orientation was confuse.
The orientation by default (no lock) is always to view plane.
Diffstat (limited to 'source/blender/makesrna/intern/rna_gpencil.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_gpencil.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c index c6bf4317064..1dbca8b27c9 100644 --- a/source/blender/makesrna/intern/rna_gpencil.c +++ b/source/blender/makesrna/intern/rna_gpencil.c @@ -72,13 +72,6 @@ static EnumPropertyItem rna_enum_gpencil_onion_modes_items[] = { { 0, NULL, 0, NULL, NULL } }; -static const EnumPropertyItem rna_enum_gpencil_grid_axis_items[] = { - {GP_GRID_AXIS_LOCK, "LOCK", 0, "Drawing Plane", "Use current drawing locked axis" }, - {GP_GRID_AXIS_X, "X", 0, "Y-Z", ""}, - {GP_GRID_AXIS_Y, "Y", 0, "X-Z", ""}, - {GP_GRID_AXIS_Z, "Z", 0, "X-Y", ""}, - {0, NULL, 0, NULL, NULL} -}; #endif #ifdef RNA_RUNTIME @@ -1332,12 +1325,6 @@ static void rna_def_gpencil_grid(BlenderRNA *brna) RNA_def_property_array(prop, 2); RNA_def_property_ui_text(prop, "Offset", "Offset of the canvas"); RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update"); - - prop = RNA_def_property(srna, "axis", PROP_ENUM, PROP_NONE); - RNA_def_property_enum_sdna(prop, NULL, "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_GPENCIL | ND_DATA, "rna_GPencil_update"); } static void rna_def_gpencil_data(BlenderRNA *brna) |