Explorar o código

support ascii fbx files encoded with any type of line ending

sebastian %!s(int64=7) %!d(string=hai) anos
pai
achega
c12486485b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/js/loaders/FBXLoader.js

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

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