소스 검색

update following @looeee suggestions

NicekDev 7 년 전
부모
커밋
4e3c1e960e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/js/loaders/FBXLoader.js

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

@@ -366,7 +366,7 @@
 
 		var texture;
 	
-		if ( textureNode.FileName.slice( textureNode.FileName.lastIndexOf( '.' ) + 1 ) === 'tga' ) {
+		if ( textureNode.FileName.slice( -3 ).toLowerCase() === 'tga' ) {
 			
  			texture = THREE.Loader.Handlers.get( '.tga' ).load( fileName );