Blender Git Commit Log

Git Commits -> Revision 57a3cff

Revision 57a3cff by Campbell Barton (master)
January 7, 2011, 09:50 (GMT)
patch [#25440] Object.vertex_group fixin'
from Dan Eicher (dna)

From the tracker (with minor edits)
========================

cube = bpy.data.objects['Cube']
foo = cube.vertex_groups.new('foo')
foo.add([1,3,5,7], 1.0, 'ADD')

for i in range(len(cube.data.vertices)):
try:
weight = foo.weight(i)
print('vert: %i weight: %f' % (i, weight))
except:
pass

foo.remove([1,3])

cube.vertex_groups.remove(foo)

Commit Details:

Full Hash: 57a3cff3b890d93089a1b45c40bdc14d8101fb5e
SVN Revision: 34148
Parent Commit: 41c0006
Lines Changed: +138, -40

3 Modified Paths:

/source/blender/editors/include/ED_mesh.h (+3, -0) (Diff)
/source/blender/editors/object/object_vgroup.c (+43, -18) (Diff)
/source/blender/makesrna/intern/rna_object.c (+92, -22) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021