diff options
author | Jacques Lucke <jacques@blender.org> | 2022-08-31 14:56:56 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-08-31 14:57:08 +0300 |
commit | 627e8ad6826ac355148a5b2d2b3bf130b96cc2fb (patch) | |
tree | 1d328fc460746ec176ac400bf808e743b7d71073 /source/blender/blenkernel | |
parent | d3f07998eded607049666d6157f7d32120b51e46 (diff) |
Fix: missing vector clear
Otherwise, these vectors are never cleared, leading to crashes
down the line.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/node_runtime.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/node_runtime.cc b/source/blender/blenkernel/intern/node_runtime.cc index 20ee3c41534..0c78c0f09d1 100644 --- a/source/blender/blenkernel/intern/node_runtime.cc +++ b/source/blender/blenkernel/intern/node_runtime.cc @@ -195,6 +195,8 @@ static void update_logical_origins(const bNodeTree &ntree) bNode &node = *tree_runtime.nodes[i]; for (bNodeSocket *socket : node.runtime->inputs) { Vector<bNodeSocket *, 16> sockets_in_current_chain; + socket->runtime->logically_linked_sockets.clear(); + socket->runtime->logically_linked_skipped_sockets.clear(); find_logical_origins_for_socket_recursive( *socket, false, |