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

Editor: Fix KTX2 support with glTF assets. #27191

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Nov 15, 2023

Related issue: #22035

Description

When debugging a glTF asset with the editor, I have noticed the respective KTX2 textures were not displayed. Turns out the call of detectSupport() was missing. This is now done with a new signal so the editor does not have to create a temporary renderer just for the loader creation.

While reviewing my code, I have noticed that UITexture should also use the new signal which required a minor refactoring in the constructor (since a reference to the editor object is required like in UIOutliner). While doing this, I have removed the unused UICubeTexture class as well.

@Mugen87 Mugen87 changed the title Editor: Fix KTX2 support with glTF asset. Editor: Fix KTX2 support with glTF assets. Nov 15, 2023
@Mugen87 Mugen87 added this to the r159 milestone Nov 15, 2023
@Mugen87 Mugen87 merged commit 273eb1a into mrdoob:dev Nov 15, 2023
11 checks passed
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
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.

1 participant