|
@@ -2,6 +2,11 @@
|
|
|
* @author mrdoob / http://mrdoob.com/
|
|
|
*/
|
|
|
|
|
|
+THREE.ParseException = function(message) {
|
|
|
+ this.message = message;
|
|
|
+ this.name = "ParseException";
|
|
|
+}
|
|
|
+
|
|
|
THREE.OBJLoader = function ( manager ) {
|
|
|
|
|
|
this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
|
|
@@ -334,7 +339,7 @@ THREE.OBJLoader.prototype = {
|
|
|
|
|
|
} else {
|
|
|
|
|
|
- // console.log( "THREE.OBJLoader: Unhandled line " + line );
|
|
|
+ throw new THREE.ParseException("Unexpected line: " + line);
|
|
|
|
|
|
}
|
|
|
|