Blender Git Commit Log

Git Commits -> Revision 758f3f7

Revision 758f3f7 by Julian Eisel (master)
October 5, 2021, 14:10 (GMT)
Fix T91940: Asset Browser catalogs continuously redraw

Issue was that the `on_activate()` callback of tree-items were
continuously called, because the active-state was queried before we
fully reconstructed the tree and its state from the previous redraw.
Such issues could happen in more places, so I've refactored the API a
bit to reflect the requirements for state queries, and include some
sanity checks.
The actual fix for the issue is to delay the state change until the tree
is fully reconstructed, by letting the tree-items pass a callback to
check if they should be active.

Commit Details:

Full Hash: 758f3f7456ac1e31f411c4ac1b19760ad6e5539c
Parent Commit: dbe3981
Lines Changed: +84, -20

3 Modified Paths:

/source/blender/editors/include/UI_tree_view.hh (+38, -4) (Diff)
/source/blender/editors/interface/tree_view.cc (+41, -6) (Diff)
/source/blender/editors/space_file/asset_catalog_tree_view.cc (+5, -10) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021