Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2008-10-05 16:02:36 +0400
committerTon Roosendaal <ton@blender.org>2008-10-05 16:02:36 +0400
commit86560d6b3f4e499b1c811fd4287f6ff07896fef6 (patch)
tree789c26ab21eb48591af1dcc4ea37d4ea5362c3c4 /source/blender/src/editmesh.c
parent5c74db4e4e004acf5e49c8627c59e0d95d35e4ae (diff)
Bugfix #8908
Using shapekeys, you get corruptions in other shapes when you undo into a previous editmode session. The "key index" values become invalid. Now, if you have shape keys, entering editmode will clear the previously stored undos.
Diffstat (limited to 'source/blender/src/editmesh.c')
-rw-r--r--source/blender/src/editmesh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/editmesh.c b/source/blender/src/editmesh.c
index 25e7c50b07e..e96c3f6d40f 100644
--- a/source/blender/src/editmesh.c
+++ b/source/blender/src/editmesh.c
@@ -892,7 +892,7 @@ void make_editMesh()
return;
}
#endif
-
+
/* because of reload */
free_editMesh(em);
@@ -914,8 +914,11 @@ void make_editMesh()
strcpy(G.editModeTitleExtra, "(Key) ");
key_to_mesh(actkey, me);
tot= actkey->totelem;
+ /* undo-ing in past for previous editmode sessions gives corrupt 'keyindex' values */
+ undo_editmode_clear();
}
+
/* make editverts */
CustomData_copy(&me->vdata, &em->vdata, CD_MASK_EDITMESH, CD_CALLOC, 0);
mvert= me->mvert;