Fix: add missing node tree topology cache

This commit is contained in:
Jacques Lucke
2025-01-13 15:06:43 +01:00
parent 1fae5fd8f6
commit 01be014b3d

View File

@@ -1078,6 +1078,7 @@ bNodeTreeInterfaceSocket *add_interface_socket_from_node(bNodeTree &ntree,
const StringRef socket_type,
const StringRef name)
{
ntree.ensure_topology_cache();
bNodeTreeInterfaceSocket *iosock = nullptr;
if (from_node.is_group()) {
if (const bNodeTree *group = reinterpret_cast<const bNodeTree *>(from_node.id)) {