Modifiers: add invert vgroup weights options to operands of Mix modifier.

Please note that vertices which are in a vgroup are not affected by this
option (which means that affected vertices from 'selection' modes remain
the same). Only the weights of selected vertices get inverted.

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D7811
This commit is contained in:
D. O
2020-05-29 18:52:29 +02:00
committed by Bastien Montagne
parent c93a88413d
commit 907cab45ff
4 changed files with 40 additions and 4 deletions

View File

@@ -1449,7 +1449,9 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
col = split.column()
col.label(text="Vertex Group A:")
col.prop_search(md, "vertex_group_a", ob, "vertex_groups", text="")
row = col.row(align=True)
row.prop_search(md, "vertex_group_a", ob, "vertex_groups", text="")
row.prop(md, "invert_vertex_group_a", text="", icon='ARROW_LEFTRIGHT')
col.label(text="Default Weight A:")
col.prop(md, "default_weight_a", text="")
@@ -1458,7 +1460,9 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
col = split.column()
col.label(text="Vertex Group B:")
col.prop_search(md, "vertex_group_b", ob, "vertex_groups", text="")
row = col.row(align=True)
row.prop_search(md, "vertex_group_b", ob, "vertex_groups", text="")
row.prop(md, "invert_vertex_group_b", text="", icon='ARROW_LEFTRIGHT')
col.label(text="Default Weight B:")
col.prop(md, "default_weight_b", text="")