godot
godot copied to clipboard
Fix port cache calculation in GraphNode
Fixes #91082 by updating the left_port_cache
& right_port_cache
calculation in GraphNode::_port_pos_update
.
@Geometror See also #90229 and #90787. Seems like it's easy to make mistakes in this code with different indices.
@akien-mga Yes indeed (child index, slot index and port index), but unfortunately that's just how the current system works. Changing this would basically require a complete rework of GraphNode/GraphEdit (much more sophisticated than the refactoring I've done). Maybe for 5.0 :)
Thanks! And congrats for your first merged Godot contribution :tada: