[Bf-blender-cvs] [494fbfc045d] blender2.8: GP: Move Autlock to Layer menu

Antonioya noreply at git.blender.org
Wed Oct 31 14:18:43 CET 2018


Commit: 494fbfc045d74ed66c85b698d3f243125988708a
Author: Antonioya
Date:   Wed Oct 31 14:18:16 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB494fbfc045d74ed66c85b698d3f243125988708a

GP: Move Autlock to Layer menu

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

M	release/scripts/startup/bl_ui/properties_data_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 7f7813cad36..3499411f632 100644
--- a/release/scripts/startup/bl_ui/properties_data_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_data_gpencil.py
@@ -72,6 +72,7 @@ class GPENCIL_MT_layer_specials(Menu):
 
     def draw(self, context):
         layout = self.layout
+        gpd = context.gpencil_data
 
         layout.operator("gpencil.layer_duplicate", icon='ADD')  # XXX: needs a dedicated icon
 
@@ -84,6 +85,7 @@ class GPENCIL_MT_layer_specials(Menu):
 
         layout.operator("gpencil.lock_all", icon='LOCKED', text="Lock All")
         layout.operator("gpencil.unlock_all", icon='UNLOCKED', text="UnLock All")
+        layout.prop(gpd, "use_autolock_layers", text="Autolock Inactive Layers")
 
         layout.separator()
 
@@ -160,10 +162,6 @@ class DATA_PT_gpencil_datapanel(Panel):
         if gpl:
             row.prop(gpl, "opacity", text="Opacity", slider=True)
 
-            # autolock layers
-            row = layout.row(align=True)
-            row.prop(gpd, "use_autolock_layers", text="Autolock Inactive Layers")
-
 
 class DATA_PT_gpencil_layer_optionpanel(LayerDataButtonsPanel, Panel):
     bl_space_type = 'PROPERTIES'



More information about the Bf-blender-cvs mailing list