Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-10-31 16:18:16 +0300
committerAntonioya <blendergit@gmail.com>2018-10-31 16:18:39 +0300
commit494fbfc045d74ed66c85b698d3f243125988708a (patch)
tree3a22565a4afd1405e2d0ed155098a191b05ea652 /release/scripts/startup/bl_ui/properties_data_gpencil.py
parenta3802f66e22e57115f48545a39bf41959eb16fad (diff)
GP: Move Autlock to Layer menu
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_gpencil.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_gpencil.py6
1 files changed, 2 insertions, 4 deletions
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'