Browse Source

support ascii fbx files encoded with any type of line ending

sebastian 7 năm trước cách đây
mục cha
commit
c12486485b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 ) {