2
0
Эх сурвалжийг харах

Merge pull request #5143 from dmtaub/fixOBJLoader

handle another case of line continuation
Mr.doob 11 жил өмнө
parent
commit
dd792c7eed

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

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