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

Sprite2D replaces Polygon2D texture when changing z_index #86547

Closed
Demonfir3 opened this issue Dec 27, 2023 · 0 comments · Fixed by #86522
Closed

Sprite2D replaces Polygon2D texture when changing z_index #86547

Demonfir3 opened this issue Dec 27, 2023 · 0 comments · Fixed by #86522

Comments

@Demonfir3
Copy link

Tested versions

4.3 dev 1

System information

Windows 11 - Vulkan (Forward+) - RTX 4060

Issue description

I was trying to add background elements to my scene and noticed that changing z_index of Sprite2D node, changes Polygon2D texture to the same texture that Sprite2D holds. It happens when z_index of Sprite2D and Polygon2D is equal or lower. Changing Sprtie2D node to Polygon2D node fixes the issue.

_.node_2d2.tscn.-.minimal_project.-.Godot.Engine.2023-12-27.12-49-53.mp4

Steps to reproduce

  1. Open project provided.
  2. Open player_3.4_v3/node_2d2.tscn
  3. Change z_index of a "WallChainLong" node.

Minimal reproduction project (MRP)

minimal_project2.zip

@KoBeWi KoBeWi added this to the 4.3 milestone Dec 27, 2023
@Demonfir3 Demonfir3 changed the title Sprite2D replaces Polygon2D texturure when changing z_index Sprite2D replaces Polygon2D texture when changing z_index Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants