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.
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user