Explorar el Código

fix operator precedence bug in WWOBJLoader2.js

Evan Wallace hace 8 años
padre
commit
fbc92abfa7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/js/loaders/WWOBJLoader2.js

+ 1 - 1
examples/js/loaders/WWOBJLoader2.js

@@ -208,7 +208,7 @@ THREE.OBJLoader2.WWOBJLoader2 = (function () {
 		if ( this.dataAvailable ) {
 
 			// fast-fail on bad type
-			if ( ! params.objAsArrayBuffer instanceof Uint8Array ) {
+			if ( ! ( params.objAsArrayBuffer instanceof Uint8Array ) ) {
 				throw 'Provided input is not of type arraybuffer! Aborting...';
 			}