Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvaslayers with the same layer don't follow the order on the tree because of the position of a node #81262

Open
saierXP opened this issue Sep 3, 2023 · 1 comment

Comments

@saierXP
Copy link

saierXP commented Sep 3, 2023

Godot version

4.2.dev4

System information

Windows 10.0.19045 - Vulkan (Mobile) - integrated AMD Radeon(TM) Vega 8 Graphics (Advanced Micro Devices, Inc.; 30.0.13023.4001) - AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx (8 Threads)

Issue description

Godot_v4 2-dev4_win64_psfelU1dZ5

This issue also affects the rendering results at runtime.
Related to #25384?

Steps to reproduce

Download Minimal reproduction project.
Change the position of node N and observe the rendering result(Like in the gif animation above).

Minimal reproduction project

CanvasLayerBug.zip

@saierXP saierXP changed the title Canvas layers with the same number of layers do not follow the order on the tree because of the position of a node Canvaslayers with the same layer don't follow the order on the tree because of the position of a node Sep 3, 2023
@Sauermann
Copy link
Contributor

According to the docs https://docs.godotengine.org/en/latest/tutorials/2d/canvas_layers.html

"CanvasLayers are independent of tree order, and they only depend on their layer number, so they can be instantiated when needed."

So CanvasLayers with the same layer-index seem to be ordered in a non-deterministic way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants