From 53855b4a437433a49c1a2c5ae2b6474bcb091aaa Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Fri, 23 Feb 2007 06:02:46 +0000 Subject: [PATCH] == Multires == Fixed bug #6056, Brush Grab in SculptMode don't works for ShapeKeys * Grab Brush stores active vertices differently from other brushes, need to read from a different List when updating shape keys. --- source/blender/src/sculptmode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/src/sculptmode.c b/source/blender/src/sculptmode.c index 2c1cfe2bb34..eed6d23e718 100644 --- a/source/blender/src/sculptmode.c +++ b/source/blender/src/sculptmode.c @@ -1221,7 +1221,8 @@ void do_brush_action(float *vertexcosnos, EditData e, if(keyblock) { float *co= keyblock->data; if(co) { - for(adata= active_verts.first; adata; adata= adata->next) + adata = e.grabdata ? e.grabdata->active_verts[e.grabdata->index].first : active_verts.first; + for(; adata; adata= adata->next) if(adata->Index < keyblock->totelem) VecCopyf(&co[adata->Index*3], me->mvert[adata->Index].co); }