Blender Git Commit Log

Git Commits -> Revision 54da72d

Revision 54da72d by Hans Goudey (master)
October 16, 2020, 20:16 (GMT)
Property Search: Reset panel expansion when exiting search

This patch implements panel expansion saving and resetting for property
search. While search is active, the panel expansion is based on whether
or not it has a search result. When the search finishes, the panel
expansion returns to its state before the search started. However, any
panels interacted with during the search won't reset their expansion.

This requires adding a new runtime flag for panels to store whether to
use search result status as expansion. It also requires better handling
for animation when panel expansion changes with another new runtime flag.
`UI_panel_is_closed` gets the search-dependent expansion, but it is
intentionally not used to access expansion in every case-- sometimes it's
necessary to use `PNL_CLOSED` directly.

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

Commit Details:

Full Hash: 54da72d3cd546ecbd2560d7d57cbed33064bbee1
Parent Commit: 77aef03
Lines Changed: +90, -58

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2020