Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
upisfree authored and Brakebein committed May 6, 2024
1 parent 4bc5351 commit 60f22ad
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion build/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ class GLTFLoader extends three.Loader {
setDDSLoader() {
throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".');
}
setKTX2Loader(ktx2Loader) {
this.ktx2Loader = ktx2Loader;
return this;
}
setMeshoptDecoder(meshoptDecoder) {
this.meshoptDecoder = meshoptDecoder;
return this;
Expand Down Expand Up @@ -1696,7 +1700,7 @@ class GLTFParser {
parser.associations.set(texture, gltfReference);
}
}
if (colorSpace !== undefined) {
if (texture && colorSpace !== undefined) {
texture.colorSpace = colorSpace;
}
materialParams[mapName] = texture;
Expand Down
2 changes: 1 addition & 1 deletion build/index.cjs.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/index.js.map

Large diffs are not rendered by default.

0 comments on commit 60f22ad

Please sign in to comment.