diff options
author | Jonathan Smith <j.jaydez@gmail.com> | 2011-01-25 12:31:29 +0300 |
---|---|---|
committer | Jonathan Smith <j.jaydez@gmail.com> | 2011-01-25 12:31:29 +0300 |
commit | fe16455af24b24c3c0cdbe12949eea6a039c2c70 (patch) | |
tree | f199231b382552d6d5cdb09b397c2dd222bfd291 /add_mesh_gears.py | |
parent | c11459a563fe93f1174ec416a97c857020bded05 (diff) |
Fixed gears script vertex group assignment thanks to patch #25616
Diffstat (limited to 'add_mesh_gears.py')
-rw-r--r-- | add_mesh_gears.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/add_mesh_gears.py b/add_mesh_gears.py index 72d00796..22b4728c 100644 --- a/add_mesh_gears.py +++ b/add_mesh_gears.py @@ -44,7 +44,7 @@ Also, the vertex group API is changed a little bit but the concepts are the same: ========= vertexgroup = ob.vertex_groups.new('NAME_OF_VERTEXGROUP') -ob.vertex_groups.assign(vertexgroup_vertex_indices, vertexgroup, weight, 'ADD') +vertexgroup.add(vertexgroup_vertex_indices, weight, 'ADD') ========= Now for some reason the name does not 'stick' and we have to set it this way: @@ -785,10 +785,10 @@ class AddGear(bpy.types.Operator): # Create vertex groups from stored vertices. tipGroup = obj.vertex_groups.new('Tips') - obj.vertex_groups.assign(verts_tip, tipGroup, 1.0, 'ADD') + tipGroup.add(verts_tip, 1.0, 'ADD') valleyGroup = obj.vertex_groups.new('Valleys') - obj.vertex_groups.assign(verts_valley, valleyGroup, 1.0, 'ADD') + valleyGroup.add(verts_valley, 1.0, 'ADD') return {'FINISHED'} @@ -889,10 +889,10 @@ class AddWormGear(bpy.types.Operator): # Create vertex groups from stored vertices. tipGroup = obj.vertex_groups.new('Tips') - obj.vertex_groups.assign(verts_tip, tipGroup, 1.0, 'ADD') + tipGroup.add(verts_tip, 1.0, 'ADD') valleyGroup = obj.vertex_groups.new('Valleys') - obj.vertex_groups.assign(verts_valley, valleyGroup, 1.0, 'ADD') + valleyGroup.add(verts_valley, 1.0, 'ADD') return {'FINISHED'} |