Parcourir la source

Convert primitive warning to error.

Don McCurdy il y a 8 ans
Parent
commit
ce190ebd7d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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" );
 
 					}