Blender Git Loki

Git Commits -> Revision fc96110

Revision fc96110 by Julian Eisel (master)
June 8, 2016, 14:05 (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: fc96110bb56f15b947de8e29a12731fe35aa8dff
Parent Commit: 37fc4b5
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