From 5a3a573b95eb14306741903e86aec9ac6877c52c Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Tue, 25 Jan 2011 07:53:58 +0000
Subject: [PATCH] fix [#25616] fix for changed vertex group assignment API from
 Lawrence D'Oliveiro (ldo)

---
 space_view3d_copy_attributes.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index f825ba7d6..4a1593981 100644
--- a/space_view3d_copy_attributes.py
+++ b/space_view3d_copy_attributes.py
@@ -418,7 +418,7 @@ def obWei(ob, active, context):
                         groups = ob.vertex_groups
                         for vgs in range(0, len(groups)):
                             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")
     return('INFO', "weights copied")
 
-- 
GitLab