Recoded version of patch #4273, submitted by Daniel Genrich

This provides a weight-paint option that only paints on vertices that have
already the weight-group assigned before. The default adds weights on all
vertices painted on.

Fixes in patch include:
- much less code
- also support for 'filter' mode
- proper code styling
This commit is contained in:
2006-08-29 10:27:48 +00:00
parent d0cabce889
commit 7bec4dba41
5 changed files with 51 additions and 28 deletions

View File

@@ -50,7 +50,10 @@ void del_defgroup (struct Object *ob);
void assign_verts_defgroup (void);
void remove_verts_defgroup (int allverts);
void sel_verts_defgroup (int select);
struct MDeformWeight *get_defweight (struct MDeformVert *dv, int defgroup);
struct MDeformWeight *verify_defweight (struct MDeformVert *dv, int defgroup);
void verify_defgroups (struct Object *ob);
void add_vert_to_defgroup (struct Object *ob, struct bDeformGroup *dg,
int vertnum, float weight,