Ver Fonte

Style update

updated following #takahirox suggestions
NicekDev há 7 anos atrás
pai
commit
2935fdf4df
1 ficheiros alterados com 1 adições e 1 exclusões
  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( textureNode.FileName.lastIndexOf( '.' ) + 1 ) === 'tga' ) {
 			
  			texture = THREE.Loader.Handlers.get( '.tga' ).load( fileName );