Skip to content
Snippets Groups Projects
Commit 5a3a573b authored by Campbell Barton's avatar Campbell Barton
Browse files

fix [#25616] fix for changed vertex group assignment API

from Lawrence D'Oliveiro (ldo) 
parent 059a219f
No related branches found
No related tags found
No related merge requests found
...@@ -418,7 +418,7 @@ def obWei(ob, active, context): ...@@ -418,7 +418,7 @@ def obWei(ob, active, context):
groups = ob.vertex_groups groups = ob.vertex_groups
for vgs in range(0, len(groups)): for vgs in range(0, len(groups)):
if groups[vgs].name == groupName: if groups[vgs].name == groupName:
ob.vertex_groups.assign(v.index, groups[vgs], ob.vertex_groups.assign((v.index,), groups[vgs],
vgroupIndex_weight[i][1], "REPLACE") vgroupIndex_weight[i][1], "REPLACE")
return('INFO', "weights copied") return('INFO', "weights copied")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment