Explorar o código

fix operator precedence bug in WWOBJLoader2.js

Evan Wallace %!s(int64=8) %!d(string=hai) anos
pai
achega
fbc92abfa7
Modificáronse 1 ficheiros con 1 adicións e 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...';
 			}