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