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-11-23 01:41:07 +0300
committerTon Roosendaal <ton@blender.org>2004-11-23 01:41:07 +0300
commitf3c8c47adb6ff3e3ca88418f4c26e9795029613f (patch)
tree9cea62673a5568f6b8add5ef978ca1c0da1c8127 /source/blender/src/interface.c
parent0d9fa743489bd9bf9b1c33541dc7506136e030d0 (diff)
Fix for #1839
On large changes of the Lattice resolution button, the undopush crashed. Reason was that the push happened for buttons before the actual event for buttons was executed. Solved by creating new event UNDOPUSH that's being added to the queue by by buttons now. - Made button undo texts for number buttons more clear - Added undo push for missing Add lamp/empty/lattice/camera
Diffstat (limited to 'source/blender/src/interface.c')
-rw-r--r--source/blender/src/interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c
index 84fd6421d2f..873b1baab7d 100644
--- a/source/blender/src/interface.c
+++ b/source/blender/src/interface.c
@@ -3342,10 +3342,10 @@ static int ui_do_block(uiBlock *block, uiEvent *uevent)
if ELEM4(but->type, BLOCK, BUT, LABEL, PULLDOWN);
else {
/* define which string to use for undo */
- if ELEM(but->type, LINK, INLINK) BIF_undo_push("Add button link");
- else if ELEM(but->type, MENU, ICONTEXTROW) BIF_undo_push(but->drawstr);
- else if(but->str[0]) BIF_undo_push(but->str);
- else BIF_undo_push(but->tip);
+ if ELEM(but->type, LINK, INLINK) screen_delayed_undo_push("Add button link");
+ else if ELEM(but->type, MENU, ICONTEXTROW) screen_delayed_undo_push(but->drawstr);
+ else if(but->drawstr[0]) screen_delayed_undo_push(but->drawstr);
+ else screen_delayed_undo_push(but->tip);
}
}
}