From c11459a563fe93f1174ec416a97c857020bded05 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Tue, 25 Jan 2011 09:13:06 +0000
Subject: [PATCH] fix [#25791] Copy Attributes?\191Copy Vertex Weights
 Subfunction?\191Doesn?\191t Work\nfrom  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 4a1593981..19eb593f7 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],
+                                groups[vgs].add((v.index,),
                                    vgroupIndex_weight[i][1], "REPLACE")
     return('INFO', "weights copied")
 
-- 
GitLab