diff options
author | Ton Roosendaal <ton@blender.org> | 2011-01-19 17:19:20 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-01-19 17:19:20 +0300 |
commit | f49d7d59dc0a83e074e9202a54c22f3c056aa5a6 (patch) | |
tree | c8fd6497130413a182bec254cf3d142e670f0ecc /source/blender/editors/include/UI_interface.h | |
parent | 450288999c74cbef4678e804bbb28d7ebf5752fb (diff) |
Bugfix #25652
Report was that move-to-layer menu failed. The real cause was
more complex; had to dive deep in the dungeons of the interface
code that handled undos and operators. Found several issues:
- popup menus (like redo operator, color picker) executed again
on a mouse-exit
- far too many buttons were sending undo pushes; even worse, in
the operator redo-panel each button action was pushed twice
- in case operator redo-buttons have own callbacks (like layer
buttons) the redo wasn't working
- layerbutton menu was called without creating a proper undo/redo
case
Things should all work smoother now!
On todo:
- better definition and handling of all versions for operator menus
(four types now, not fun)
also: make operator "do" menu, which on first action does operator
and then switches to redo-ing
- bring back Undo menu, to list the undo stack and jump in it.
Diffstat (limited to 'source/blender/editors/include/UI_interface.h')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 1ea4f88ebe6..b9ded28b613 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -211,6 +211,7 @@ typedef struct uiLayout uiLayout; #define TOGBUT (37<<9) #define OPTION (38<<9) #define OPTIONN (39<<9) + /* buttons with value >= SEARCH_MENU don't get undo pushes */ #define SEARCH_MENU (40<<9) #define BUT_EXTRA (41<<9) #define HSVCIRCLE (42<<9) |