Blender Git Loki

Git Commits -> Revision 008f459

Revision 008f459 by Julian Eisel (compositor-2016)
June 8, 2016, 19:45 (GMT)
Make uiLists placed in popups usable

It's still not completely working - there are still some glitches - but far better than before.
To make buttons of the uiList work, you have to add a 'check' callback to the operator that invokes the menu. Only if it returns True, the uiList gets refreshed. To avoid this we have to make the region refresh tagging in the entire button handling a bit smarter.

Changes I had to do:
* Call uiList handling from menu/popup handling if needed.
* Make uiList handling use special popup refresh tag if placed in menu.
* Allow popups invoked from py operator to tag for refresh by using operator 'check' callback.
* Tag popup for refresh when resizing uiList.

Mostly fixes T48612.

Commit Details:

Full Hash: 008f45976c68a88d1605a4b8a002d10a44ba9924
Parent Commit: dde1cca
Committed By: Jeroen Bakker
Lines Changed: +37, -10

3 Modified Paths:

/source/blender/editors/interface/interface_handlers.c (+27, -7) (Diff)
/source/blender/editors/interface/interface_templates.c (+4, -1) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+6, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021