diff options
author | Julian Eisel <julian@blender.org> | 2021-10-05 17:01:01 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-10-05 17:10:27 +0300 |
commit | 758f3f7456ac1e31f411c4ac1b19760ad6e5539c (patch) | |
tree | 6250d84f5f188b887d3c2014ceeab5c619f3b0e8 /intern/cycles | |
parent | dbe3981b0a805c1a40f42f57dc7ccc3d28270fda (diff) |
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.
Diffstat (limited to 'intern/cycles')
0 files changed, 0 insertions, 0 deletions