Преглед изворни кода

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;
 		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 );
  			texture = THREE.Loader.Handlers.get( '.tga' ).load( fileName );