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

The whole CompressedTexture2D is rendered instead of the correct Atlas Texture in the Sprite2D Region Editor #83021

Closed
RobotoSkunk opened this issue Oct 9, 2023 · 2 comments

Comments

@RobotoSkunk
Copy link

RobotoSkunk commented Oct 9, 2023

Godot version

v4.1.2.stable.mono.official [399c9dc]

System information

Godot v4.1.2.stable.mono - Debian GNU/Linux trixie/sid trixie - X11 - Vulkan (Compatibility) - NVIDIA GeForce GTX 1650 (nvidia) - AMD FX-8800P Radeon R7, 12 Compute Cores 4C+8G (4 Threads)

Issue description

When I opened the Region Editor of a Sprite2D node, the whole spritesheet of my game was rendered instead of the right Atlas Texture that was attached to the Sprite2D.

It should be displaying this:
image

But I got this instead:
image

I thought that I was selecting the whole spritesheet and rendering it, but in the game, it looks correct
image

Steps to reproduce

  1. Add a new spritesheet or any image to test.
  2. Create a new Atlas Texture from it.
  3. Create a Sprite2D node and attach the Atlas Texture as the Texture of the node.
  4. Enable Region in the Sprite2D node.
  5. Open the Region Editor of the Sprite2D node.

Minimal reproduction project

N/A

@Calinou
Copy link
Member

Calinou commented Oct 9, 2023

This should be fixed in 4.2.dev6 as per #80435, please test.

@RobotoSkunk
Copy link
Author

This should be fixed in 4.2.dev6 as per #80435, please test.

Tested on 4.2-dev6, fixed as per #80435.

image

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

3 participants