Reply To: big subtle bug :D

NodeCanvas Forums Support big subtle bug :D Reply To: big subtle bug :D

#11590
Gavalakis
Keymaster

Hey,

I see what you mean. I don’t think that qualifies as bug though 🙂 More like a design choice. 🙂
Please let me explain why it’s made to make use of center rather than X.

Here is a screenshot of how it works now. Visually, the connection lines and the position they are touching the nodes, indicate which node is first and which one is second.
PosXCenter

If we change the sorting to be done by the nodeRect.x rather than center.x, then the connections (in some cases) no longer reflect the order of the nodes and can lead to visually being criss-crossed, which I think can be quite confusing.
I really believe that in the following image, the top action node should be first in order 🙂
PosXMin

Is such a layout that you have and mean by “step ladder”?

Join us on Discord: https://discord.gg/97q2Rjh

Attachments:
  1. PosXCenter.png

  2. PosXMin.png