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

fix [#25648] Incorrect assignment of vertex groups in OBJ importer

patch from Lawrence D'Oliveiro (ldo)
parent c799e2bc
No related branches found
No related tags found
No related merge requests found
...@@ -752,8 +752,8 @@ def create_mesh(new_objects, has_ngons, CREATE_FGONS, CREATE_EDGES, verts_loc, v ...@@ -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 # content of the vertex_groups. If the user selects to NOT have vertex groups saved then
# the following test will never run # the following test will never run
for group_name, group_indicies in vertex_groups.items(): for group_name, group_indicies in vertex_groups.items():
group= ob.vertex_groups.new(group_name) group = ob.vertex_groups.new(group_name)
ob.vertex_groups.assign(group_indicies, group, 1.0, 'REPLACE') group.add(group_indicies, 1.0, 'REPLACE')
def create_nurbs(context_nurbs, vert_loc, new_objects): def create_nurbs(context_nurbs, vert_loc, new_objects):
......
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