mirror of
https://github.com/eliasstepanik/egui_node_graph.git
synced 2026-01-21 02:38:26 +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);
|
self.node_order.retain(|id| *id != *node_id);
|
||||||
}
|
}
|
||||||
NodeResponse::DisconnectEvent { input, output } => {
|
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.graph.remove_connection(*input);
|
||||||
self.connection_in_progress =
|
self.connection_in_progress =
|
||||||
Some((other_node, AnyParameterId::Output(*output)));
|
Some((other_node, AnyParameterId::Output(*output)));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user