Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-01-07 12:50:23 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-07 12:50:23 +0300
commit57a3cff3b890d93089a1b45c40bdc14d8101fb5e (patch)
tree32212f25dfe1dc064ee2d3d2dac747f415795f8d /source/blender/editors/include/ED_mesh.h
parent41c00063dd43f1a653747129bdb29dcdb13818dd (diff)
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)
Diffstat (limited to 'source/blender/editors/include/ED_mesh.h')
-rw-r--r--source/blender/editors/include/ED_mesh.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_mesh.h b/source/blender/editors/include/ED_mesh.h
index d1bce26dd45..386bbc0a236 100644
--- a/source/blender/editors/include/ED_mesh.h
+++ b/source/blender/editors/include/ED_mesh.h
@@ -193,12 +193,15 @@ int paintface_minmax(struct Object *ob, float *min, float *max);
struct bDeformGroup *ED_vgroup_add(struct Object *ob);
struct bDeformGroup *ED_vgroup_add_name(struct Object *ob, const char *name);
+void ED_vgroup_delete(struct Object *ob, struct bDeformGroup *defgroup);
void ED_vgroup_select_by_name(struct Object *ob, char *name);
void ED_vgroup_data_create(struct ID *id);
int ED_vgroup_give_array(struct ID *id, struct MDeformVert **dvert_arr, int *dvert_tot);
int ED_vgroup_copy_array(struct Object *ob, struct Object *ob_from);
void ED_vgroup_mirror(struct Object *ob, int mirror_weights, int flip_vgroups);
+int ED_vgroup_object_is_edit_mode(struct Object *ob);
+
void ED_vgroup_vert_add(struct Object *ob, struct bDeformGroup *dg, int vertnum, float weight, int assignmode);
void ED_vgroup_vert_remove(struct Object *ob, struct bDeformGroup *dg, int vertnum);
float ED_vgroup_vert_weight(struct Object *ob, struct bDeformGroup *dg, int vertnum);