diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-02 21:24:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-02 21:24:10 +0300 |
commit | 104f46afdd4f2b3f66a73ddc14582bcb2854ef36 (patch) | |
tree | a18ade33270d55820dd3df58649b0c1892451e9d /source/blender/editors/sculpt_paint | |
parent | 21f1625fd537ea439e464e1d2cbd12ad770526ee (diff) |
linking in mesh data with animation crashed blender. also fixed some warnings.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index 7ad65a1cbfc..6986d86ef42 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -1536,10 +1536,12 @@ static void wpaint_stroke_update_step(bContext *C, struct PaintStroke *stroke, P if(mface->v4) (me->dvert+mface->v4)->flag= 1; if(brush->vertexpaint_tool==VP_BLUR) { - MDeformWeight *dw, *(*dw_func)(MDeformVert *, int) = defvert_verify_index; + MDeformWeight *dw, *(*dw_func)(MDeformVert *, int); if(wp->flag & VP_ONLYVGROUP) - dw_func= defvert_find_index; + dw_func= (void *)defvert_find_index; /* uses a const, cast to quiet warning */ + else + dw_func= defvert_verify_index; dw= dw_func(me->dvert+mface->v1, ob->actdef-1); if(dw) {paintweight+= dw->weight; totw++;} |