소스 검색

VTKLoader: fix CRLF for module VTKLoader

David Peicho 5 년 전
부모
커밋
3bacf7792d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/jsm/loaders/VTKLoader.js

+ 1 - 1
examples/jsm/loaders/VTKLoader.js

@@ -102,7 +102,7 @@ VTKLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 			for ( var i in lines ) {
 
-				var line = lines[ i ];
+				var line = lines[ i ].trim();
 
 				if ( line.indexOf( 'DATASET' ) === 0 ) {