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:
parent
71d65e881f
commit
d66bc3807f
|
@ -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="")
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue