diff options
author | Matias Mendiola <mendio> | 2019-11-18 16:33:14 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-11-18 16:33:25 +0300 |
commit | d66bc3807f922caa95452732d64abead9f50514f (patch) | |
tree | b839a817c2e9b564390d5b81dcd751173bdee26d /release/scripts/startup | |
parent | 71d65e881f2b6b7684258a8f1fce872078f431a9 (diff) |
GPencil: Layers and Materials Specials menu updates
Rename and separate Layers and Materials Specials menu from other buttons for better consistency
Reviewed By: antoniov
Differential Revision: https://developer.blender.org/D6271
Diffstat (limited to 'release/scripts/startup')
3 files changed, 6 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_gpencil.py b/release/scripts/startup/bl_ui/properties_data_gpencil.py index 751af892778..e0a43a5fccc 100644 --- a/release/scripts/startup/bl_ui/properties_data_gpencil.py +++ b/release/scripts/startup/bl_ui/properties_data_gpencil.py @@ -77,7 +77,7 @@ class DATA_PT_context_gpencil(DataButtonsPanel, Panel): class GPENCIL_MT_layer_context_menu(Menu): - bl_label = "Layer" + bl_label = "Layer Specials" def draw(self, context): layout = self.layout @@ -137,6 +137,8 @@ class DATA_PT_gpencil_layers(DataButtonsPanel, Panel): sub.operator("gpencil.layer_add", icon='ADD', text="") sub.operator("gpencil.layer_remove", icon='REMOVE', text="") + sub.separator() + if gpl: sub.menu("GPENCIL_MT_layer_context_menu", icon='DOWNARROW_HLT', text="") diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index b6db3cf0b97..bc76f57fa86 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -858,6 +858,8 @@ class GreasePencilMaterialsPanel: col.operator("object.material_slot_add", icon='ADD', text="") col.operator("object.material_slot_remove", icon='REMOVE', text="") + col.separator() + col.menu("GPENCIL_MT_color_context_menu", icon='DOWNARROW_HLT', text="") if is_sortable: diff --git a/release/scripts/startup/bl_ui/properties_material_gpencil.py b/release/scripts/startup/bl_ui/properties_material_gpencil.py index 02aec00edf6..8ce97a88e35 100644 --- a/release/scripts/startup/bl_ui/properties_material_gpencil.py +++ b/release/scripts/startup/bl_ui/properties_material_gpencil.py @@ -28,7 +28,7 @@ from bl_ui.properties_grease_pencil_common import ( class GPENCIL_MT_color_context_menu(Menu): - bl_label = "Layer" + bl_label = "Material Specials" def draw(self, _context): layout = self.layout |