Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-01-15 21:56:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-15 21:56:17 +0300
commitb89e757cfd55caf4f32f6041bfbf5aed4f362c43 (patch)
treea6791e0985f01eb9d76e923459a1745ecad038b8 /io_scene_obj
parentc799e2bcf51fc449598ff7bb5837b436a4ffe1bb (diff)
fix [#25648] Incorrect assignment of vertex groups in OBJ importer
patch from Lawrence D'Oliveiro (ldo)
Diffstat (limited to 'io_scene_obj')
-rw-r--r--io_scene_obj/import_obj.py4
1 files changed, 2 insertions, 2 deletions
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):