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-11-26 20:12:39 +0300
committerAntonioya <blendergit@gmail.com>2018-11-26 20:12:39 +0300
commit99f7934e19ddf6796e866d2ddc0c3882ed8fcc2b (patch)
tree45e39dc690fd17f989bceac35e8ecf794417af34 /release/scripts/startup/bl_ui/properties_data_gpencil.py
parentc0816cd03b42399e75a285d5e5dd1319e5054f17 (diff)
GP: New Blend Layers functionality
Now it's possible define the blend mode between layers including the option to clamp the layer using underlying layers. Also a new Simplify option has been added to disable blend layers.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_gpencil.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_gpencil.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_gpencil.py b/release/scripts/startup/bl_ui/properties_data_gpencil.py
index 949a48ed7f1..558c3c190b6 100644
--- a/release/scripts/startup/bl_ui/properties_data_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_data_gpencil.py
@@ -135,13 +135,22 @@ class DATA_PT_gpencil_datapanel(Panel):
col.template_list("GPENCIL_UL_layer", "", gpd, "layers", gpd.layers, "active_index",
rows=layer_rows, reverse=True)
+ gpl = context.active_gpencil_layer
+ if gpl:
+ srow = col.row(align=True)
+ srow.prop(gpl, "blend_mode", text="Blend")
+
+ srow = col.row(align=True)
+ srow.prop(gpl, "opacity", text="Opacity", slider=True)
+ srow.prop(gpl, "clamp_layer", text="",
+ icon='MOD_MASK' if gpl.clamp_layer else 'ONIONSKIN_OFF')
+
col = row.column()
sub = col.column(align=True)
sub.operator("gpencil.layer_add", icon='ADD', text="")
sub.operator("gpencil.layer_remove", icon='REMOVE', text="")
- gpl = context.active_gpencil_layer
if gpl:
sub.menu("GPENCIL_MT_layer_specials", icon='DOWNARROW_HLT', text="")
@@ -158,10 +167,6 @@ class DATA_PT_gpencil_datapanel(Panel):
sub.operator("gpencil.layer_isolate", icon='LOCKED', text="").affect_visibility = False
sub.operator("gpencil.layer_isolate", icon='RESTRICT_VIEW_ON', text="").affect_visibility = True
- row = layout.row(align=True)
- if gpl:
- row.prop(gpl, "opacity", text="Opacity", slider=True)
-
class DATA_PT_gpencil_layer_optionpanel(LayerDataButtonsPanel, Panel):
bl_space_type = 'PROPERTIES'