Fix #111381: Crash when inserting a node onto a link inside a frame
`discover_tree_zones` requires the node topology cache, make sure it is available before calling. Pull Request: https://projects.blender.org/blender/blender/pulls/111383
This commit is contained in:
@@ -334,6 +334,7 @@ static std::unique_ptr<bNodeTreeZones> discover_tree_zones(const bNodeTree &tree
|
||||
|
||||
const bNodeTreeZones *get_tree_zones(const bNodeTree &tree)
|
||||
{
|
||||
tree.ensure_topology_cache();
|
||||
tree.runtime->tree_zones_cache_mutex.ensure(
|
||||
[&]() { tree.runtime->tree_zones = discover_tree_zones(tree); });
|
||||
return tree.runtime->tree_zones.get();
|
||||
|
||||
Reference in New Issue
Block a user