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

Container won't update rect_size after Sprite child's region_rect increased. #39336

Open
MaaaxiKing opened this issue Jun 6, 2020 · 1 comment

Comments

@MaaaxiKing
Copy link

MaaaxiKing commented Jun 6, 2020

Godot version:

3.2.1.stable

OS/device including version:

Windows 10 Home 1909

Intel(R) UHD Graphics 620
GLES3
Issue description:

A container which has a Sprite child doesn't update it's size after the Sprite's region rect increased.

Steps to reproduce:
Create a scene with root Node Container. Add a Sprite as a child to it. Import a texture with repeat enabled. Set this texture to the sprite. Enable region. Set w or h to something bigger than the texture size.
Minimal reproduction project:

Container Sprite region bug.zip

@TheDuriel
Copy link
Contributor

Containers do not sort Node2D's. Use a TextureRect instead.

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