From e4a1eb4e09384aee760d45db1841666c92972743 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 11 Nov 2006 23:23:15 +0000 Subject: Added custom vertex data support to editmode. Only used for vertex groups now, others can be added later (sticky, shape keys). Beside one small fix for knife exact vertex group interpolation, is intended to work the same as before. Also fixes bug #5200, related to editmode undo and vertex groups. And corrects the editmode to faceselect mode selection conversion, that was broken in a previous commit. --- source/blender/blenlib/BLI_editVert.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/blenlib/BLI_editVert.h') diff --git a/source/blender/blenlib/BLI_editVert.h b/source/blender/blenlib/BLI_editVert.h index 25559043bc8..d39cd748fb1 100644 --- a/source/blender/blenlib/BLI_editVert.h +++ b/source/blender/blenlib/BLI_editVert.h @@ -68,13 +68,13 @@ typedef struct EditVert f1 and f2 can be used for temp data, clear them first*/ unsigned char f, h, f1, f2; short fast; /* only 0 or 1, for editmesh_fastmalloc, do not store temp data here! */ - short totweight; /* __NLA total number of vertex weights for this vertex */ int hash; - struct MDeformWeight *dw; /* __NLA a pointer to an array of defirm weights */ int keyindex; /* original index #, for restoring key information */ /*#ifdef WITH_VERSE*/ void *vvert; /*#endif*/ + + void *data; /* custom vertex data */ } EditVert; struct EditEdge; @@ -168,7 +168,7 @@ typedef struct EditMesh char retopo_mode; /* 0=OFF, 1=ON, 2=PAINT */ struct RetopoPaintData *retopo_paint_data; - CustomData fdata; + CustomData vdata, fdata; #ifdef WITH_VERSE void *vnode; -- cgit v1.2.3