mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-05 19:58:12 +08:00
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>
This commit is contained in:
co-authored by
CaligulaAlucard
Keavon Chambers
parent
90be1f42c6
commit
12896a2407
@@ -4200,7 +4200,8 @@ impl NodeNetworkInterface {
|
|||||||
if let InputConnector::Node { node_id: downstream_id, .. } = downstream_node {
|
if let InputConnector::Node { node_id: downstream_id, .. } = downstream_node {
|
||||||
let downstream_node_output = OutputConnector::node(*downstream_id, 0);
|
let downstream_node_output = OutputConnector::node(*downstream_id, 0);
|
||||||
if !delete_nodes.contains(downstream_id) {
|
if !delete_nodes.contains(downstream_id) {
|
||||||
stack.push(downstream_node_output);
|
can_delete = false;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
// 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
|
// 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
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user