Forráskód Böngészése

Merge pull request #5143 from dmtaub/fixOBJLoader

handle another case of line continuation
Mr.doob 11 éve
szülő
commit
dd792c7eed
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      examples/js/loaders/OBJLoader.js

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

@@ -192,7 +192,7 @@ THREE.OBJLoader.prototype = {
 
 
 		// fixes
 		// fixes
 
 
-		text = text.replace( /\\\r\n/g, '' ); // handles line continuations \
+		text = text.replace( /\\\r?\n/g, '' ); // handles line continuations \
 
 
 		var lines = text.split( '\n' );
 		var lines = text.split( '\n' );
 
 

粤ICP备19079148号