Open janEntikan opened 2 years ago
Just committed some changes so that creating cyclic connections won't result in a crash anymore and will highlight the problematic connection instead.
I still want to enable cyclic connections for some nodes that can actually make use of that, so I'm not closing the issue yet. Though, I'm not sure how to handle the logic part since that would mean it'd still end up in a too deep recursion exception. So there has to be a limit or alternatively the logic will not be handled by the actual logic processing in the node editor. That way it'd be more of a visual representation for cyclic connections.
It might help to see an actual example for a cyclic connection to implement more specific details but that'd also require having nodes that could actually be connected in a cycle in a meaningful way.
When you make a cycle of nodes (connecting two nodes to eachother into a cycle) the editor crashes:
The easy way out is to disallow cyclic structures and stick to a tree structure (blender colors one connection line red). For things like a non-linear story editor, having cyclic nodes would be very interesting.