Blender Git Commit Log

Git Commits -> Revision 8bcdcab

Revision 8bcdcab by Hans Goudey (master)
September 15, 2020, 16:25 (GMT)
UI: Single tab property search

This adds a search bar to the properties editor. The full search for
every tab isn't included in this patch, but the interaction with
panels, searching behavior, UI, region level, and DNA changes are
included here.

The block-level search works by iterating over the block's button
groups and checking whether they match the search. If they do, they
are tagged with a flag, and the block's panel is tagged too. For
every update (text edit), the panel's expansion is set to whether
the panel has a result or not. The search also checks for matching
strings inside enums and in panel labels.

One complication to this that isn't immediately apparent is that
closed panel's subpanels have to be searched too. This adds some
complexity to the area-level panel layout code.

Possible Future Improvements:
- Use the new fuzzy search in BLI
- Reset panels to their expansion before the search started if
the user escape out of the text box.
- Open all child panels of a panel with expansion.

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

Commit Details:

Full Hash: 8bcdcab659fb688d976a50d892dcb4285ff2a180
Parent Commit: 7a0a60d
Lines Changed: +504, -30

13 Modified Paths:

/release/scripts/startup/bl_ui/space_properties.py (+4, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+4, -0) (Diff)
/source/blender/editors/include/ED_screen.h (+4, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+11, -0) (Diff)
/source/blender/editors/interface/interface.c (+25, -2) (Diff)
/source/blender/editors/interface/interface_intern.h (+14, -1) (Diff)
/source/blender/editors/interface/interface_layout.c (+213, -2) (Diff)
/source/blender/editors/interface/interface_panel.c (+103, -18) (Diff)
/source/blender/editors/screen/area.c (+76, -6) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+12, -1) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+8, -0) (Diff)
/source/blender/makesdna/DNA_space_types.h (+10, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+20, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021