Skip to content

Commit 12896a2

Browse files
Daniel53245CaligulaAlucardKeavon
authored
Fix node deletion being too greedy (#2619)
fix too greedy node deletion search Co-authored-by: CaligulaAlucard <caligulaalucard@localhost.localdomain> Co-authored-by: Keavon Chambers <keavon@keavon.com>
1 parent 90be1f4 commit 12896a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

editor/src/messages/portfolio/document/utility_types/network_interface.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4200,7 +4200,8 @@ impl NodeNetworkInterface {
42004200
if let InputConnector::Node { node_id: downstream_id, .. } = downstream_node {
42014201
let downstream_node_output = OutputConnector::node(*downstream_id, 0);
42024202
if !delete_nodes.contains(downstream_id) {
4203-
stack.push(downstream_node_output);
4203+
can_delete = false;
4204+
break;
42044205
}
42054206
// Continue traversing over the downstream sibling, if the current node is a sibling to a node that will be deleted and it is a layer
42064207
else {

0 commit comments

Comments
 (0)