Blender Git Commit Log

Git Commits -> Revision 44dcc74

Revision 44dcc74 by Hans Goudey (property-search-ui-v2)
September 9, 2020, 18:27 (GMT)
Property Search: Add highlight arguments to tab buttons

For searching multiple tabs, we need a way to show which tabs have a search
result, but we still need to be able to show which tab is active. Also, multiple
tabs can be highlighted, so that argument needs be be a bitfield enum. This
requires giving extra arguments to `ui_item_enum_expand_tabs`.

Unforunately this adds a bit of ugly complexity to this function. It would be
better if RNA enum items could have an "active" flag, but that change would
probably have larger scope.

Differential Revision: https://developer.blender.org/D8858

Commit Details:

Full Hash: 44dcc742c66b3a2537dbe8f5860ad2968b50b2d5
Parent Commit: 863ea6a
Lines Changed: +68, -6

3 Modified Paths:

/source/blender/editors/include/UI_interface.h (+2, -0) (Diff)
/source/blender/editors/interface/interface_layout.c (+29, -3) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+37, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021