Explorar el Código

Convert primitive warning to error.

Don McCurdy hace 8 años
padre
commit
ce190ebd7d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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" );
 
 					}