gero3 11 years ago
parent
commit
e4328213e4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/js/loaders/OBJLoader.js

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

@@ -192,7 +192,7 @@ THREE.OBJLoader.prototype = {
 
 		//
 
-		var lines = text.split( '\n' );
+		var lines = text.replace(/\\\n/g,' ').split( '\n' );
 
 		for ( var i = 0; i < lines.length; i ++ ) {
 
@@ -324,4 +324,4 @@ THREE.OBJLoader.prototype = {
 
 	}
 
-};
+};