From e6449a5c2cecf4b97f3ad7805a2b0087ceefeaa8 Mon Sep 17 00:00:00 2001 From: Lukas Toenne Date: Wed, 21 Nov 2012 09:32:40 +0000 Subject: Fix for debug assert failure with Reroute nodes in compositor. After redirecting links from the reroute output the input must be completely unlinked, otherwise the debug_check_node_connections will complain (this is a sanity check that ensures all the original Nodes have been fully reconnected to Operations). --- source/blender/compositor/nodes/COM_MuteNode.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/compositor') diff --git a/source/blender/compositor/nodes/COM_MuteNode.cpp b/source/blender/compositor/nodes/COM_MuteNode.cpp index 4502dcf469c..de12fff3591 100644 --- a/source/blender/compositor/nodes/COM_MuteNode.cpp +++ b/source/blender/compositor/nodes/COM_MuteNode.cpp @@ -43,6 +43,10 @@ void MuteNode::reconnect(ExecutionSystem *graph, OutputSocket *output) if (input->getDataType() == output->getDataType()) { if (input->isConnected()) { output->relinkConnections(input->getConnection()->getFromSocket(), false); + /* output connections have been redirected, + * remove the input connection to completely unlink the node. + */ + input->unlinkConnections(graph); return; } } -- cgit v1.2.3