2
0
Эх сурвалжийг харах

fix operator precedence bug in WWOBJLoader2.js

Evan Wallace 8 жил өмнө
parent
commit
fbc92abfa7

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

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