Browse Source

Merge pull request #5143 from dmtaub/fixOBJLoader

handle another case of line continuation
Mr.doob 11 năm trước cách đây
mục cha
commit
dd792c7eed
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/js/loaders/OBJLoader.js

+ 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' );