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>2004-12-12 22:06:04 +0300
committerTon Roosendaal <ton@blender.org>2004-12-12 22:06:04 +0300
commitd422cbb54467a012e675c6fc820a6d5b6900b6e9 (patch)
tree0f605291f66d935bc746b215e2551ae4175984ff
parentf48b4f5b4a4380abacf890ff68c7d6e5b51b57a4 (diff)
Bug, reported by Bassam;
When editing Meshes with vertex keys (RVKs), the undo stack isn't updated correctly, causing a loss of the situation when entering editmode after changing active key, and doing undo immediate after. This due to an 'optimizer' in the undo code that tried to prevent undos pushed on identical situations (e.g. pressing TAB multiple times). Decided to remove that convention, the annoyance of having possible multiple undos in a row isn't worth solving it by potential losses.
-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;