Closed taylank closed 5 years ago
What you're describing has been working correctly for two years, and has just been tested to work as well on Unity 2019.1.8. We're gonna need some more help finding the cause of this bug
I'll get back to you with a repro project sometime next week.
Any progress? Or did you find that this was caused by something in your project?
I haven't been able to reproduce it with a clean install, so it's probably something related to changes I've made to xNode core. Thanks for checking in and looking into it.
Using NodeGraph.Copy() I've noticed that while the graph and its nodes are instantiated, NodePorts still have data pertaining to the original graph.
The redirection method changes the node reference of the connection object, which in most cases produces correct functionality, but it leaves NodePort objects the same as the original graph's. This is undesirable in situations where the data contained in NodePorts are used for graph traversal.
On my end I appear to have solved this problem by cloning all nodePorts in a new port dictionary and assigning that to the node, followed by cloning each connection: