Blender Git Commit Log

Git Commits -> Revision 67e6306

Revision 67e6306 by Hans Goudey (master)
September 15, 2020, 14:38 (GMT)
Property Search: Build button groups for Search

This is needed for property search (upcoming patch D8856) where a
buttons labels are often separate buttons, but we need to highlight
the label to show that a property is a search result. This is
especially important in "property split" layouts where the label is
almost always another button in a separate column.

The button groups here are basically a flattened view of the buttons
in the layout tree. Every function that adds a new set of buttons
creates a new button group, and the new buttons are automatically
added to the most recent group. Then, each group is searched
separately in the property search phase. It's important that every
function adding a new button set calls layout_root_new_button_group.

Note that this won't be disabled when property search isn't active.
It may be useful for other things in the future, and trying to pass
that information to layout functions didn't feel worth it to me.

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

Commit Details:

Full Hash: 67e630609bb408e366398cb7ea9fdc09f31190e7
Parent Commit: f886e13
Lines Changed: +90, -3

3 Modified Paths:

/source/blender/editors/interface/interface.c (+1, -0) (Diff)
/source/blender/editors/interface/interface_intern.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_layout.c (+88, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021