Selaa lähdekoodia

Update EXRLoader.js

mrdoob 3 vuotta sitten
vanhempi
commit
71a8dca532
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  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 = {};
 			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.' );
 				throw new Error( 'THREE.EXRLoader: provided file doesn\'t appear to be in OpenEXR format.' );
 
 
+			}
+
 			EXRHeader.version = dataView.getUint8( 4, true );
 			EXRHeader.version = dataView.getUint8( 4, true );
 
 
 			const spec = dataView.getUint8( 5, true ); // fullMask
 			const spec = dataView.getUint8( 5, true ); // fullMask