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

Fix rendering centered odd-size texture in AnimatedSprite2D/AnimatedSprite3D #53051

Merged

Conversation

kleonc
Copy link
Member

@kleonc kleonc commented Sep 25, 2021

Fixes #53050.

Edit: also fixes selecting issue in Sprite3D - previously I could select a 1x1 centered sprite only by clicking at its positive quarter:
ThjiCby19g
Now I can select by clicking anywhere on the sprite.

@kleonc kleonc requested review from a team as code owners September 25, 2021 10:27
@kleonc kleonc changed the title Fix rendering centered odd-size texture in AnimatedSprite2D/AnimatedSprite3D Fix rendering centered odd-size texture in AnimatedSprite2D/AnimatedSprite3D Sep 25, 2021
@Calinou Calinou added this to the 4.0 milestone Sep 25, 2021
@kleonc kleonc force-pushed the animated-sprites-centered-rendering branch from 07e172a to b266b59 Compare October 3, 2021 12:32
@akien-mga akien-mga merged commit c773c70 into godotengine:master Oct 5, 2021
@akien-mga
Copy link
Member

Thanks!

@kleonc kleonc deleted the animated-sprites-centered-rendering branch October 5, 2021 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect rendering of centered odd-size texture (frame) in AnimatedSprite/AnimatedSprite3D
4 participants