Skip to content

Commit c8b13c6

Browse files
committed
GLTFLoader: Rebase.
1 parent 94b37fd commit c8b13c6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

examples/js/loaders/GLTFLoader.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ THREE.GLTFLoader = ( function () {
146146
extensions[ extensionName ] = new GLTFDracoMeshCompressionExtension( this.dracoLoader );
147147
break;
148148

149+
case EXTENSIONS.MSFT_TEXTURE_DDS:
150+
extensions[ EXTENSIONS.MSFT_TEXTURE_DDS ] = new GLTFTextureDDSExtension();
151+
break;
152+
149153
default:
150154

151155
if ( extensionsRequired.indexOf( extensionName ) >= 0 ) {
@@ -158,12 +162,6 @@ THREE.GLTFLoader = ( function () {
158162

159163
}
160164

161-
if ( json.extensionsUsed.indexOf( EXTENSIONS.MSFT_TEXTURE_DDS ) >= 0 ) {
162-
163-
extensions[ EXTENSIONS.MSFT_TEXTURE_DDS ] = new GLTFTextureDDSExtension();
164-
165-
}
166-
167165
}
168166

169167
console.time( 'GLTFLoader' );

0 commit comments

Comments
 (0)