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>2014-06-18 22:17:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-18 22:17:38 +0400
commitbf58bd10bb1a8b75be851981a1a185db80d35aba (patch)
tree2b2b049124686866495f46c54ee0ad819b3be6a2 /source/blender/editors/space_view3d
parentbab75f8bf6a7b26e824f4d76d580940a1deb4489 (diff)
Correct error in last commit
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 9c2d482c9be..c2c5ecc4449 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -153,6 +153,8 @@ typedef struct drawDMEdgesSelInterp_userData {
} drawDMEdgesSelInterp_userData;
typedef struct drawDMEdgesWeightInterp_userData {
+ BMesh *bm;
+
int cd_dvert_offset;
int defgroup_tot;
int vgroup_index;
@@ -2448,7 +2450,7 @@ static void bm_color_from_weight(float col[3], BMVert *vert, drawDMEdgesWeightIn
static void draw_dm_edges_weight_interp__setDrawInterpOptions(void *userData, int index, float t)
{
drawDMEdgesWeightInterp_userData *data = userData;
- BMEdge *eed = BM_edge_at_index(((void **)userData)[0], index);
+ BMEdge *eed = BM_edge_at_index(data->bm, index);
float col[3];
if (t == 0.0f) {
@@ -2474,6 +2476,7 @@ static void draw_dm_edges_weight_interp(BMEditMesh *em, DerivedMesh *dm, const c
drawDMEdgesWeightInterp_userData data;
Object *ob = em->ob;
+ data.bm = em->bm;
data.cd_dvert_offset = CustomData_get_offset(&em->bm->vdata, CD_MDEFORMVERT);
data.defgroup_tot = BLI_countlist(&ob->defbase);
data.vgroup_index = ob->actdef - 1;