We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1ac787 commit 44ef123Copy full SHA for 44ef123
editor/src/messages/portfolio/document/utility_types/network_interface.rs
@@ -4235,6 +4235,12 @@ impl NodeNetworkInterface {
4235
if !delete_nodes.contains(downstream_id) || (*input_index == 0 && self.is_layer(downstream_id, network_path)) {
4236
stack.push(*downstream_id);
4237
}
4238
+ // If the traversal reaches the primary input of the node to delete then do not delete it
4239
+ if node_id == downstream_id && *input_index == 0 {
4240
+ can_delete = false;
4241
+ stack = Vec::new();
4242
+ break;
4243
+ }
4244
4245
// If the traversal reaches the export, then the current node is not a sole dependent and cannot be deleted
4246
else {
0 commit comments