[Bf-blender-cvs] [d66bc3807f9] master: GPencil: Layers and Materials Specials menu updates

Matias Mendiola noreply at git.blender.org
Mon Nov 18 14:34:11 CET 2019


Commit: d66bc3807f922caa95452732d64abead9f50514f
Author: Matias Mendiola
Date:   Mon Nov 18 14:33:14 2019 +0100
Branches: master
https://developer.blender.org/rBd66bc3807f922caa95452732d64abead9f50514f

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

===================================================================

M	release/scripts/startup/bl_ui/properties_data_gpencil.py
M	release/scripts/startup/bl_ui/properties_grease_pencil_common.py
M	release/scripts/startup/bl_ui/properties_material_gpencil.py

===================================================================

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



More information about the Bf-blender-cvs mailing list