From b89e757cfd55caf4f32f6041bfbf5aed4f362c43 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 15 Jan 2011 18:56:17 +0000 Subject: fix [#25648] Incorrect assignment of vertex groups in OBJ importer patch from Lawrence D'Oliveiro (ldo) --- io_scene_obj/import_obj.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io_scene_obj') diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index c0c64c3d..3d2b5e6d 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -752,8 +752,8 @@ def create_mesh(new_objects, has_ngons, CREATE_FGONS, CREATE_EDGES, verts_loc, v # content of the vertex_groups. If the user selects to NOT have vertex groups saved then # the following test will never run for group_name, group_indicies in vertex_groups.items(): - group= ob.vertex_groups.new(group_name) - ob.vertex_groups.assign(group_indicies, group, 1.0, 'REPLACE') + group = ob.vertex_groups.new(group_name) + group.add(group_indicies, 1.0, 'REPLACE') def create_nurbs(context_nurbs, vert_loc, new_objects): -- cgit v1.2.3