Browse Source

Update EXRLoader.js

mrdoob 3 years ago
parent
commit
71a8dca532
1 changed files with 3 additions and 1 deletions
  1. 3 1
      examples/jsm/loaders/EXRLoader.js

+ 3 - 1
examples/jsm/loaders/EXRLoader.js

@@ -1992,10 +1992,12 @@ class EXRLoader extends DataTextureLoader {
 
 			const EXRHeader = {};
 
-			if ( dataView.getUint32( 0, true ) != 20000630 ) // magic
+			if ( dataView.getUint32( 0, true ) != 20000630 ) { // magic
 
 				throw new Error( 'THREE.EXRLoader: provided file doesn\'t appear to be in OpenEXR format.' );
 
+			}
+
 			EXRHeader.version = dataView.getUint8( 4, true );
 
 			const spec = dataView.getUint8( 5, true ); // fullMask