rna support for passing dynamic sized arrays to rna functions

using this for object.vertex_groups.assign([index list ...], group, weight, mode)
This commit is contained in:
2010-08-31 11:31:21 +00:00
parent 9a290b39c7
commit dfb8c5974e
16 changed files with 83 additions and 52 deletions

View 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):