浏览代码

Merge pull request #14502 from sebular/fbx-newlines

support ascii fbx files encoded with any type of line ending
Mr.doob 7 年之前
父节点
当前提交
a261726723
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/loaders/FBXLoader.js

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

@@ -2878,7 +2878,7 @@
 
 			var self = this;
 
-			var split = text.split( '\n' );
+			var split = text.split( /[\r\n]+/ );
 
 			split.forEach( function ( line, i ) {