Blender Git Loki

Git Commits -> Revision cb6234f

Revision cb6234f by Hans Goudey (master)
October 3, 2020, 16:25 (GMT)
Property Search: Set panel expansion when tab changes

This commit makes the panel expansion set based on the search results
when the active tab in the properties editor changes. The multi-tab
search patch (D8859) actually doesn't handle this because it uses a
different code path.

This feature uncovered a subtle but fairly significant issue with the
implementation of property search (More details in T81113). Basically,
the search needed multiple redraws to properly display the expansion of
panels based on the search results. Because there is no animation of
panel expansion when switching tabs, the problem was exposed only now.

With this commit, hiding of "search only" buttons and panel size
calculation happens in a single final step of the panel layout pass.
The "search only" layout root flag is removed. Instead every button
inside a panel header is in a single "uiButtonGroup" marked with a
specific "in header" flag, an idea which could be generalized in the
future.

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

Commit Details:

Full Hash: cb6234fccf7dfd3e09555cac18357427d802be1d
Parent Commit: 724370b
Lines Changed: +191, -108

7 Modified Paths:

/source/blender/editors/include/UI_interface.h (+3, -3) (Diff)
/source/blender/editors/interface/interface_button_group.c (+11, -2) (Diff)
/source/blender/editors/interface/interface_intern.h (+10, -1) (Diff)
/source/blender/editors/interface/interface_layout.c (+4, -62) (Diff)
/source/blender/editors/interface/interface_panel.c (+151, -27) (Diff)
/source/blender/editors/screen/area.c (+7, -13) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+5, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021