GP: Add option to select color affected in modifiers

Now it's possible to define if the Tint, Hue and OPacity modifier affect the stroke color, fill color or both.
This commit is contained in:
2018-08-09 13:42:02 +02:00
committed by Antonioya
parent f284821bf7
commit 2e10c658f4
6 changed files with 81 additions and 29 deletions

View File

@@ -1757,6 +1757,8 @@ class DATA_PT_gpencil_modifiers(ModifierButtonsPanel, Panel):
row = layout.row()
row.prop(md, "create_materials")
row.prop(md, "modify_color")
def GP_COLOR(self, layout, ob, md):
gpd = ob.data
@@ -1779,6 +1781,7 @@ class DATA_PT_gpencil_modifiers(ModifierButtonsPanel, Panel):
row = layout.row()
row.prop(md, "create_materials")
row.prop(md, "modify_color")
def GP_OPACITY(self, layout, ob, md):
gpd = ob.data
@@ -1805,6 +1808,7 @@ class DATA_PT_gpencil_modifiers(ModifierButtonsPanel, Panel):
row = layout.row()
row.prop(md, "create_materials")
row.prop(md, "modify_color")
def GP_INSTANCE(self, layout, ob, md):
gpd = ob.data