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
This commit is contained in:
Matias Mendiola 2019-11-18 14:33:14 +01:00 committed by Antonio Vazquez
parent 71d65e881f
commit d66bc3807f
3 changed files with 6 additions and 2 deletions

View File

@ -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="")

View File

@ -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:

View File

@ -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