Fix #105855: Crash with node add menu assets and keyboard navigation #106237

Closed
Julian Eisel wants to merge 1 commits from JulianEisel:temp-fix-105855-geo-node-add-menu-crash into blender-v3.5-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

1 Commits

Author SHA1 Message Date
Julian Eisel 3f0b5b361d Fix 105855: Crash with node add menu assets and keyboard navigation
The UI needs persistent pointers to catalog paths that it can pass
around via context. It was trying to manage this in own storage, but
this didn't work. Not entirely sure why - the menus get redrawn
continuously while assets load, and the root menu rebuilds the mentioned
storage every time. Maybe the submenus redraw a bit later, or the
keyboard navigation handling still accessed data from a previous redraw
somehow.

Either way, instead of managing own catalog path storage, point into the
asset system, which already has persistent storage for the catalog
paths.
2023-03-28 18:58:51 +02:00