Ver código fonte

Convert primitive warning to error.

Don McCurdy 8 anos atrás
pai
commit
ce190ebd7d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/js/loaders/GLTF2Loader.js

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

@@ -1809,7 +1809,7 @@ THREE.GLTF2Loader = ( function () {
 
 					} else {
 
-						console.warn( "Only triangular and line primitives are supported" );
+						throw new Error( "Only triangular and line primitives are supported" );
 
 					}