renderer: fix bug where disconnecting a shared node wouldn't update in the renderer

This commit is contained in:
itsmattkc
2020-05-13 16:07:08 +10:00
parent 1ed0814e83
commit ce78c168e6
+5
View File
@@ -386,6 +386,11 @@ void RenderBackend::CopyNodeInputValue(NodeInput *input)
copied_graph_.TakeNode(n);
delete n;
}
// And clear any other edges
while (!our_copy->edges().isEmpty()) {
NodeParam::DisconnectEdge(our_copy->edges().first());
}
}
// Then we copy all node dependencies and connections (if there are any)