Skip to content

Commit 1cc85a9

Browse files
authored
Merge pull request #13864 from takahirox/GLTFLoaderMinorCleanup
GLTFLoader: Minor clean up
2 parents 12e7e07 + d51275f commit 1cc85a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/js/loaders/GLTFLoader.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ THREE.GLTFLoader = ( function () {
243243
*/
244244
function GLTFTextureDDSExtension() {
245245

246-
if (!THREE.DDSLoader) {
246+
if ( ! THREE.DDSLoader ) {
247247

248248
throw new Error( 'THREE.GLTFLoader: Attempting to load .dds texture without importing THREE.DDSLoader' );
249249

@@ -1906,6 +1906,7 @@ THREE.GLTFLoader = ( function () {
19061906

19071907
if ( textureDef.name !== undefined ) texture.name = textureDef.name;
19081908

1909+
// .format of dds texture is set in DDSLoader
19091910
if ( ! textureExtensions[ EXTENSIONS.MSFT_TEXTURE_DDS ] ) {
19101911

19111912
texture.format = textureDef.format !== undefined ? WEBGL_TEXTURE_FORMATS[ textureDef.format ] : THREE.RGBAFormat;

0 commit comments

Comments
 (0)