瀏覽代碼

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 );