Blender Git Commit Log

Git Commits -> Revision 36e3847

Revision 36e3847 by Julian Eisel (master)
May 12, 2020, 18:40 (GMT)
Fix T76635: Clicking the text button X in a pop-up doesn't clear

In this case giving `CTX_wm_menu()` priority over `CTX_wm_region()` is all
that's needed and makes sense (since we want exactly the hovered button, not
some other active button in the region/menu hierarchy).

The situation with pop-ups is still tricky, see T73565. But as a first step
it's probably good to let functions be more explicit about what they want when
querying UI context. So I added a variation of a UI-context function for cases
like this.

Commit Details:

Full Hash: 36e3847093546232db3f16da9189ab7f30207126
Parent Commit: fc59feb
Lines Changed: +14, -2

3 Modified Paths:

/source/blender/editors/include/UI_interface.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_handlers.c (+12, -1) (Diff)
/source/blender/editors/interface/interface_ops.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021