From 5cfcee8c393de6781423c9ef83716c94237fddfd Mon Sep 17 00:00:00 2001 From: Antonioya Date: Sun, 4 Nov 2018 13:00:19 +0100 Subject: 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. --- source/blender/makesrna/intern/rna_gpencil.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'source/blender/makesrna/intern/rna_gpencil.c') 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) -- cgit v1.2.3