rna support for passing dynamic sized arrays to rna functions
[blender.git] / release / scripts / io / import_scene_obj.py
index 3a92ec8c5ae4cabca8f83fa5ab91ab0d1cad28f8..3ffbb36bb6fb1fd76aea039ac2d91c0e473bf4fa 100644 (file)
@@ -768,8 +768,7 @@ def create_mesh(new_objects, has_ngons, CREATE_FGONS, CREATE_EDGES, verts_loc, v
     # the following test will never run
     for group_name, group_indicies in vertex_groups.items():
         group= ob.vertex_groups.new(group_name)
-        for vertex_index in group_indicies:
-            ob.vertex_groups.assign(vertex_index, group, 1.0, 'REPLACE')
+        ob.vertex_groups.assign(group_indicies, group, 1.0, 'REPLACE')
 
 
 def create_nurbs(context_nurbs, vert_loc, new_objects):