OS/device including version:
Windows, Radeon R9 200 series
Issue description:
I have two nodes that are overlapping (exact same x/y position) on a y-sorted TileMap. The nodes will swap places randomly and Node A will be in front of Node B then randomly Node B will show up in front of Node A.
I'm guessing the algorithm that sorts the nodes is not deterministic. I would recommend that the sorting should probably just fallback to the node's index in the parent to decide on ordering if they overlap OR just make it deterministic so it doesn't jump back and forth.
Steps to reproduce:
Add 2 sprites on the same x/y position
Have other sprites that are moving around to force the engine to have to re-sort children.
See video. There are 2 sprites on the top left tile which will jump back and forth. The other nodes that are animating to the right/down are there just to force sorting to happen.
Godot version: 3.1
OS/device including version: Windows, Radeon R9 200 series
Issue description: I have two nodes that are overlapping (exact same x/y position) on a y-sorted TileMap. The nodes will swap places randomly and Node A will be in front of Node B then randomly Node B will show up in front of Node A.
I'm guessing the algorithm that sorts the nodes is not deterministic. I would recommend that the sorting should probably just fallback to the node's index in the parent to decide on ordering if they overlap OR just make it deterministic so it doesn't jump back and forth.
Steps to reproduce:
Minimal reproduction project:
YSortBug.zip
See video. There are 2 sprites on the top left tile which will jump back and forth. The other nodes that are animating to the right/down are there just to force sorting to happen.