Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Fix bug when reconnecting port
Browse files Browse the repository at this point in the history
There was a bug where removing an existing connection and re-wiring it
to the same port would not work. This is now fixed
  • Loading branch information
setzer22 committed Sep 15, 2022
1 parent c0ba6fe commit 234d377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egui_node_graph/src/editor_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit 234d377

Please sign in to comment.