[Bf-blender-cvs] [cbf9cfb5a8e] greasepencil-object: GPencil: New Layer selector in Draw context menu

Antonio Vazquez noreply at git.blender.org
Sat Feb 29 11:23:04 CET 2020


Commit: cbf9cfb5a8e2f7c140d06fb16ec7afee750c8a4e
Author: Antonio Vazquez
Date:   Sat Feb 29 11:11:32 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rBcbf9cfb5a8e2f7c140d06fb16ec7afee750c8a4e

GPencil: New Layer selector in Draw context menu

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

M	release/scripts/startup/bl_ui/space_view3d.py

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

diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 1c6f59038e2..acadc7dee14 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -6887,6 +6887,18 @@ class VIEW3D_PT_gpencil_draw_context_menu(Panel):
 
         layout.separator()
 
+        # Layers
+        gpl = context.active_gpencil_layer
+        if gpl:
+            layout.label(text="Layers:")
+            row = layout.row(align=True)
+            row.operator_context = 'EXEC_REGION_WIN'
+            row.operator_menu_enum("gpencil.layer_change", "layer", text="", icon='GREASEPENCIL')
+            row.prop(gpl, "info", text="")
+            row.operator("gpencil.layer_remove", text="", icon='X')
+
+            layout.separator()
+
         # Frames
         layout.label(text="Frames:")



More information about the Bf-blender-cvs mailing list