Ver código fonte

Merge pull request #12539 from takahirox/FixGLTFLoaderErrorMessage

Fix Error message in GLTFLoader
Mr.doob 7 anos atrás
pai
commit
370f5b9dae
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/js/loaders/GLTFLoader.js

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

@@ -1421,7 +1421,7 @@ THREE.GLTFLoader = ( function () {
 
 		if ( bufferDef.type && bufferDef.type !== 'arraybuffer' ) {
 
-			throw new Error( 'THREE.GLTFLoader: %s buffer type is not supported.', bufferDef.type );
+			throw new Error( 'THREE.GLTFLoader: ' + bufferDef.type + ' buffer type is not supported.' );
 
 		}