Blender Git Loki

Git Commits -> Revision 2a515fe

June 7, 2020, 21:27 (GMT)
Store search item in search-button data, don't reuse general void pointer

Rather than re-using the `uiBut.func_arg2` pointer to reference the active
search item, have an own pointer for that in `uiButSearch`.

Unfortunately, we still need to pass the reference as `arg2` to the
`uiBut.func` callback. But we don't need to keep `uiBut.func_arg2` set the
entire time for that.

Commit Details:

Full Hash: 2a515fe61244b3837fc77e5dfe9870ee6d934dfb
Parent Commit: 190ef51
Lines Changed: +26, -9

4 Modified Paths:

/source/blender/editors/interface/interface.c (+5, -3) (Diff)
/source/blender/editors/interface/interface_handlers.c (+11, -0) (Diff)
/source/blender/editors/interface/interface_intern.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_region_search.c (+9, -6) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021