Browse Source

Convert primitive warning to error.

Don McCurdy 8 years ago
parent
commit
ce190ebd7d
1 changed files with 1 additions and 1 deletions
  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" );
 
 					}