diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-02-11 20:56:25 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-02-11 20:56:25 +0300 |
commit | 91b967c79aa83a98a1c697120ce57d18b7e7970b (patch) | |
tree | 9c1889ed991997b94154d42e5ab12d59f617463b | |
parent | 7f5dbb7de08fadd5bc81adc9067744fffe6c1cf8 (diff) |
Fix #26039: Relative Shapkeys have wrong coordinates after inserting vertices
There was invalid memory access for newly created vertices.
Added checking of keyindex value when calculating verticies offsets.
-rw-r--r-- | source/blender/editors/mesh/editmesh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh.c b/source/blender/editors/mesh/editmesh.c index ed9f7edbd22..9376a21b23d 100644 --- a/source/blender/editors/mesh/editmesh.c +++ b/source/blender/editors/mesh/editmesh.c @@ -1181,7 +1181,9 @@ void load_editMesh(Scene *scene, Object *obedit) eve= em->verts.first; mvert = me->mvert; while(eve) { - VECSUB(ofs[i], mvert->co, oldverts[eve->keyindex].co); + if(eve->keyindex>=0) + VECSUB(ofs[i], mvert->co, oldverts[eve->keyindex].co); + eve= eve->next; i++; mvert++; |