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: avoid needless cube map loading in MeshRendererComponent.$load #829

Merged
merged 1 commit into from
Jul 16, 2021

Conversation

KaYaF
Copy link
Contributor

@KaYaF KaYaF commented Jul 16, 2021

This PR prevents unwanted loading of the MeshRendererComponent.$load method.

The MeshRendererComponent.$load method tries to load the texture from URI if CubeTexture.__startedToLoad is false, which is not necessary when creating a cube map with a typed array, so we changed CubeTexture.__startedToLoad to true.

@KaYaF KaYaF requested a review from emadurandal July 16, 2021 12:22
@emadurandal emadurandal merged commit 92fa43e into master Jul 16, 2021
@delete-merged-branch delete-merged-branch bot deleted the fix/avoid-needless-loading branch July 16, 2021 12:41
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