|
@@ -279,19 +279,20 @@ THREE.GLTFLoader = ( function () {
|
|
|
case EXTENSIONS.EXT_MESHOPT_COMPRESSION:
|
|
|
if ( extensionsRequired.includes( extensionName ) ) {
|
|
|
|
|
|
- if ( !this.meshoptDecoder ) {
|
|
|
+ if ( ! this.meshoptDecoder ) {
|
|
|
|
|
|
throw new Error( 'THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files' );
|
|
|
|
|
|
}
|
|
|
|
|
|
- if ( !this.meshoptDecoder.supported ) {
|
|
|
+ if ( ! this.meshoptDecoder.supported ) {
|
|
|
|
|
|
throw new Error( 'THREE.GLTFLoader: MeshoptDecoder support is required to load compressed files' );
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ break;
|
|
|
|
|
|
default:
|
|
|
|
|
@@ -759,7 +760,7 @@ THREE.GLTFLoader = ( function () {
|
|
|
var buffer = this.parser.getDependency( 'buffer', extensionDef.buffer );
|
|
|
var decoder = this.parser.options.meshoptDecoder;
|
|
|
|
|
|
- if ( !decoder || !decoder.supported ) {
|
|
|
+ if ( ! decoder || ! decoder.supported ) {
|
|
|
|
|
|
return null; // will use the fallback buffer if present
|
|
|
|