Add snapping for a line's midpoint when it's being drawn (#2594)

* line midpoint snapper

* Add to snap option menu

* remove being_drawn_line_midpoint

* Code review

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Mohamed Osama
2025-04-30 05:12:04 +00:00
committed by GitHub
co-authored by Keavon Chambers
parent d5cb380328
commit 0a65e570a9
2 changed files with 21 additions and 6 deletions
@@ -4198,7 +4198,6 @@ impl NodeNetworkInterface {
let Some(downstream_nodes) = outward_wires.get(&current_node) else { continue };
for downstream_node in downstream_nodes {
if let InputConnector::Node { node_id: downstream_id, .. } = downstream_node {
let downstream_node_output = OutputConnector::node(*downstream_id, 0);
if !delete_nodes.contains(downstream_id) {
can_delete = false;
break;