mirror of
https://github.com/eliasstepanik/egui_node_graph.git
synced 2026-01-11 22:08:28 +00:00
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
This commit is contained in:
parent
c0ba6fe227
commit
234d377302
@ -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)));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user