Browse Source

Merge pull request #7893 from vidstige/trustworthy-objloader

OBJLoader now throws on invalid obj files
Mr.doob 9 years ago
parent
commit
bf64a817b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/OBJLoader.js

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

@@ -337,7 +337,7 @@ THREE.OBJLoader.prototype = {
 
 			} else {
 
-				// console.log( "THREE.OBJLoader: Unhandled line " + line );
+				throw new Error("Unexpected line: " + line);
 
 			}