Fix missing topology cache in during node tree updates

Under some circumstances the `value_task` run by node tree updates
needs access to a node group topology cache. Unlike the `usage_task`
it was not ensuring the cache for the node group, so a stale cache
could be used (triggers assert).

Pull Request: https://projects.blender.org/blender/blender/pulls/136878
This commit is contained in:
Lukas Tönne
2025-04-02 12:02:41 +02:00
parent 3522e2bd26
commit 4b2fc36671

View File

@@ -600,6 +600,7 @@ struct SocketUsageInferencer {
all_socket_values_.add_new(socket, nullptr);
return;
}
group->ensure_topology_cache();
if (group->has_available_link_cycle()) {
all_socket_values_.add_new(socket, nullptr);
return;