Explorar el Código

Update GLTFLoader.js

Error constructor takes one argument. Needs to be a concatenated string. Probably a holdover from `console.error` usage
Daniel Hritzkiv hace 7 años
padre
commit
15f13bb3ce
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/js/loaders/GLTFLoader.js

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

@@ -2064,7 +2064,7 @@ THREE.GLTFLoader = ( function () {
 
 					} else {
 
-						throw new Error( 'THREE.GLTFLoader: Primitive mode unsupported: ', primitive.mode );
+						throw new Error( 'THREE.GLTFLoader: Primitive mode unsupported: ' + primitive.mode );
 
 					}