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:
-rw-r--r--source/blender/src/editmode_undo.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/src/editmode_undo.c b/source/blender/src/editmode_undo.c
index 9d905f0a0ef..89737c9aff3 100644
--- a/source/blender/src/editmode_undo.c
+++ b/source/blender/src/editmode_undo.c
@@ -132,12 +132,9 @@ void undo_editmode_push(char *name, void (*freedata)(void *),
UndoElem *uel;
int nr;
- /* prevent two same undocalls */
- if(curundo && strcmp("Original", name)==0) {
- if( curundo->ob==G.obedit && curundo->type==G.obedit->type) {
- return;
- }
- }
+ /* at first here was code to prevent an "original" key to be insterted twice
+ this was giving conflicts for example when mesh changed due to keys or apply */
+
/* remove all undos after (also when curundo==NULL) */
while(undobase.last != curundo) {
uel= undobase.last;