[Bf-blender-cvs] [cbb019718cb] greasepencil-object: UI: Move options to side menu button

Antonio Vazquez noreply at git.blender.org
Tue Aug 8 11:19:28 CEST 2017


Commit: cbb019718cb9e1ee293130504ca4f735aeb58cb5
Author: Antonio Vazquez
Date:   Mon Aug 7 16:03:28 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rBcbb019718cb9e1ee293130504ca4f735aeb58cb5

UI: Move options to side menu button

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

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

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

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 e61234e454f..2ad008ccd7f 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -948,6 +948,11 @@ class GPENCIL_MT_palettecolor_specials(Menu):
         layout.operator("palette.palettecolor_select", icon='COLOR', text="Select Strokes")
         layout.operator("gpencil.stroke_change_color", icon='MAN_TRANS', text="Move to Color")
 
+        layout.separator()
+
+        layout.operator("gpencil.stroke_lock_color", icon='BORDER_RECT', text="Lock Unselected")
+        layout.operator("palette.lock_layer", icon='COLOR', text="Lock Unused")
+
 
 class GreasePencilDataPanel:
     bl_label = "Grease Pencil Layers"
@@ -1356,12 +1361,6 @@ class GreasePencilPaletteColorPanel:
                 sub.operator("palette.palettecolor_isolate", icon='LOCKED', text="").affect_visibility = False
                 sub.operator("palette.palettecolor_isolate", icon='RESTRICT_VIEW_OFF', text="").affect_visibility = True
 
-                row = layout.row()
-                sub = row.row(align=True)
-                sub.label(text="Lock:") # based on other stuff...
-                sub.operator("gpencil.stroke_lock_color", icon='BORDER_RECT', text="")
-                sub.operator("palette.lock_layer", icon='COLOR', text="")
-
             row = layout.row()
             row.operator_menu_enum("gpencil.stroke_change_palette", text="Change Palette...", property="type")




More information about the Bf-blender-cvs mailing list