Browse Source

fix operator precedence bug in WWOBJLoader2.js

Evan Wallace 8 years ago
parent
commit
fbc92abfa7
1 changed files with 1 additions and 1 deletions
  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...';
 			}