Fix #70246: Don't Clear Tooltips on Timer Events
While processing handlers we are currently clearing tooltips if we
process any keymap handlers. This behavior was added in 8f8e91987b
so that tooltips didn't remain showing after operators started like
walk navigation. However this keeps any tooltips from showing while
animation is playing. This PR just alters the clearing to not do so
if the event is from a timer. That way we clear tooltips only for
deliberate interactive actions.
Pull Request: https://projects.blender.org/blender/blender/pulls/132539
This commit is contained in:
committed by
Harley Acheson
parent
2afd946ba6
commit
a7334db09b
@@ -3411,7 +3411,7 @@ static eHandlerActionFlag wm_handlers_do_intern(bContext *C,
|
||||
|
||||
/* Clear the tool-tip whenever a key binding is handled, without this tool-tips
|
||||
* are kept when a modal operators starts (annoying but otherwise harmless). */
|
||||
if (action & WM_HANDLER_BREAK) {
|
||||
if (action & WM_HANDLER_BREAK && !ISTIMER(event->type)) {
|
||||
/* Window may be gone after file read. */
|
||||
if (CTX_wm_window(C) != nullptr) {
|
||||
WM_tooltip_clear(C, CTX_wm_window(C));
|
||||
|
||||
Reference in New Issue
Block a user