setzer22 / egui_node_graph

Build your node graph applications in Rust, using egui
MIT License
711 stars 132 forks source link

Fix/incompatible port snap #62

Closed setzer22 closed 1 year ago

setzer22 commented 1 year ago

This takes care of the second half of https://github.com/setzer22/egui_node_graph/issues/54, where ports snapped to incompatible colors even when the connection was not possible. As discussed there, once we allow custom rules for connections between different colors (this was being worked on as part of #30) we will need to adapt this logic from using == to using the custom comparison function.

I also took care of a bug where removing an existing connection and re-wiring it to the same port would not work. This is now fixed.