diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-09-02 14:31:05 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-09-02 14:31:37 +0300 |
commit | 591db72ee2ee4c731968754f0be288e9222c012d (patch) | |
tree | 404a81c4b740cc9628c37f5ba4d787e6e1c3a842 /release | |
parent | a6816bf5db0cddd98d55c21a12a545a86bb0c004 (diff) |
GPencil: New Strength mode for Opacity modifier
This new option applies the opacity using the strength of the stroke instead to use the alpha channel of the material.
Tested in greasepencil-object branch
{F7712796}
The vertex group filter has been removed because this filter is not logic in Material mode and must be valid only in Strength mode.
{F7713147}
Reviewers: pepeland, mendio
Reviewed By: mendio
Differential Revision: https://developer.blender.org/D5650
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_modifier.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py index 47c911821fc..dcdb1e22bde 100644 --- a/release/scripts/startup/bl_ui/properties_data_modifier.py +++ b/release/scripts/startup/bl_ui/properties_data_modifier.py @@ -2012,15 +2012,19 @@ class DATA_PT_gpencil_modifiers(ModifierButtonsPanel, Panel): col.prop(md, "factor") row = layout.row() - row.prop(md, "create_materials") - row.prop(md, "modify_color") + row.prop(md, "opacity_mode", text="Mode") - col = layout.column() - col.separator() - col.label(text="Vertex Group:") - row = col.row(align=True) - row.prop_search(md, "vertex_group", ob, "vertex_groups", text="") - row.prop(md, "invert_vertex", text="", icon='ARROW_LEFTRIGHT') + if md.opacity_mode == 'MATERIAL': + row = layout.row() + row.prop(md, "create_materials") + row.prop(md, "modify_color", text="Change") + else: + col = layout.column() + col.separator() + col.label(text="Vertex Group:") + row = col.row(align=True) + row.prop_search(md, "vertex_group", ob, "vertex_groups", text="") + row.prop(md, "invert_vertex", text="", icon='ARROW_LEFTRIGHT') col = layout.column() col.separator() |