diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-02-23 09:02:46 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-02-23 09:02:46 +0300 |
commit | 53855b4a437433a49c1a2c5ae2b6474bcb091aaa (patch) | |
tree | 21ab35e7d1a24186da8060b1e2d92639fd772681 /source/blender/src/sculptmode.c | |
parent | 98a81b3927ceb447dacea27b688006332aace2ae (diff) |
== 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.
Diffstat (limited to 'source/blender/src/sculptmode.c')
-rw-r--r-- | source/blender/src/sculptmode.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |