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

Batching - fix ninepatch proxy textures (e.g. animated) #44790

Merged
merged 1 commit into from
Dec 29, 2020

Conversation

lawnjelly
Copy link
Member

@lawnjelly lawnjelly commented Dec 29, 2020

Ninepatch code has a check to prevent use of zero sized textures. This didn't deal properly with animated textures, which use a proxy (link to another texture). This PR fixes that.

EDIT - I've now made this generalised to apply to all canvas textures and properly deal with proxys, with protection against infinite loop. Decided that would be better after all than having localized changes.

Fixes #44770

@akien-mga akien-mga added this to the 3.2 milestone Dec 29, 2020
Ninepatch code has a check to prevent use of zero sized textures. This didn't deal properly with animated textures, which use a proxy (link to another texture).

This PR uses a generalised method of getting textures, with built in support for proxy textures and protection against infinite loops.
@akien-mga akien-mga merged commit d839afd into godotengine:3.2 Dec 29, 2020
@akien-mga
Copy link
Member

Thanks!

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.

2 participants