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:
Setzer22 2022-09-15 12:03:37 +02:00
parent c0ba6fe227
commit 234d377302

View File

@ -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)));