From 4b2fc3667158858c5cfb1fc9e8aafdcae02ff72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Wed, 2 Apr 2025 12:02:41 +0200 Subject: [PATCH] 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 --- source/blender/nodes/intern/socket_usage_inference.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/nodes/intern/socket_usage_inference.cc b/source/blender/nodes/intern/socket_usage_inference.cc index a911dfcd2fe..45818425dc5 100644 --- a/source/blender/nodes/intern/socket_usage_inference.cc +++ b/source/blender/nodes/intern/socket_usage_inference.cc @@ -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;