From 234d377302da9c4313af3ce895da484912b59384 Mon Sep 17 00:00:00 2001 From: Setzer22 Date: Thu, 15 Sep 2022 12:03:37 +0200 Subject: [PATCH] Fix bug when reconnecting port There was a bug where removing an existing connection and re-wiring it to the same port would not work. This is now fixed --- egui_node_graph/src/editor_ui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egui_node_graph/src/editor_ui.rs b/egui_node_graph/src/editor_ui.rs index b1fc5fd..b955111 100644 --- a/egui_node_graph/src/editor_ui.rs +++ b/egui_node_graph/src/editor_ui.rs @@ -292,7 +292,7 @@ where self.node_order.retain(|id| *id != *node_id); } NodeResponse::DisconnectEvent { input, output } => { - let other_node = self.graph.get_input(*input).node(); + let other_node = self.graph.get_output(*output).node; self.graph.remove_connection(*input); self.connection_in_progress = Some((other_node, AnyParameterId::Output(*output)));