Blender Git Commit Log
Git Commits -> Revision 7c63368
Revision 7c63368 by Hans Goudey (master) October 13, 2020, 18:10 (GMT) |
Property Search: Find results in all tabs This patch enables property search for all tabs in the property editor. To make interaction faster, if the editor's current tab doesn't have a result, the current tab changes to the next tab that has a match. This patch implements basic code that only searches panels. While we could run the existing "single tab" property search for every tab, that would also do everything else related to the layout pass, which would be less efficient, and maybe more complicated to maintain. The search match status for every current tab of the property editor is stored in a runtime bitfield and them displayed later by dimming icons in the tab selector panel to the left. Using `BLI_bitmap` properly in the runtime struct required moving it to `buttons_intern.h` and adding a small API to access the search filter instead. To make sure the editor isn't influenced by anything that happens while building the layout for other tabs, most of the context is duplicated and the new search is run in the duplicated editor. Note that the tool settings tab works slightly different than the other tabs, so I've disabled searching it for this commit. That would be a relatively simple improvement, but would just require a bit of refactoring of existing code. Differential Revision: https://developer.blender.org/D8859 |
Commit Details:
Full Hash: 7c633686e99512d33391f30e4602213ed3890802
Parent Commit: 96dd299
Lines Changed: +423, -14
10 Modified Paths:
/release/scripts/startup/bl_ui/space_properties.py (+5, -1) (Diff)
/source/blender/editors/include/ED_buttons.h (+5, -0) (Diff)
/source/blender/editors/include/ED_screen.h (+5, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_layout.c (+13, -0) (Diff)
/source/blender/editors/screen/area.c (+145, -1) (Diff)
/source/blender/editors/space_buttons/buttons_intern.h (+11, -0) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+171, -3) (Diff)
/source/blender/makesdna/DNA_space_types.h (+4, -8) (Diff)
/source/blender/makesrna/intern/rna_space.c (+63, -1) (Diff)
/source/blender/editors/include/ED_buttons.h (+5, -0) (Diff)
/source/blender/editors/include/ED_screen.h (+5, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_layout.c (+13, -0) (Diff)
/source/blender/editors/screen/area.c (+145, -1) (Diff)
/source/blender/editors/space_buttons/buttons_intern.h (+11, -0) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+171, -3) (Diff)
/source/blender/makesdna/DNA_space_types.h (+4, -8) (Diff)
/source/blender/makesrna/intern/rna_space.c (+63, -1) (Diff)