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 empty region in AtlasTexture #94365

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Jul 14, 2024

AtlasTexture supports empty region size, in which case the size of the base texture is supposed to be used. However it was implemented only partially - the size was used as size of the AtlasTexture, but not in the drawing code. This PR fixes that.

Testing: make Sprite2D with AtlasTexture where region has size of 0.

@KoBeWi KoBeWi added this to the 4.3 milestone Jul 14, 2024
@KoBeWi KoBeWi requested a review from a team as a code owner July 14, 2024 21:19
doc/classes/AtlasTexture.xml Outdated Show resolved Hide resolved
@akien-mga akien-mga merged commit d12030e into godotengine:master Jul 18, 2024
17 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the every_single_time branch July 18, 2024 13:52
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.

3 participants