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

add findTextureSource() [WebP Support] #204

Merged
merged 1 commit into from
May 19, 2024
Merged

Conversation

MatsErdkamp
Copy link
Contributor

Hi [again], I was running into an issue where webp files would not load due to texture.source being undefined. The source, in case of a webp file seems to be under 'texture.extensions.EXT_texture_webp.source'. To address this, I wrote a small function that searches for the 'source' key. I do not know if this is the 'right' fix, but it did fix my problem of webp's not loading.

should support webp extension now
@jnsmalm
Copy link
Owner

jnsmalm commented May 19, 2024

Thanks :)

@jnsmalm jnsmalm merged commit 8e74488 into jnsmalm:develop May 19, 2024
1 check passed
@MatsErdkamp MatsErdkamp deleted the webp branch May 27, 2024 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants