Selaa lähdekoodia

revert fix clip offset time

Lewy Blue 7 vuotta sitten
vanhempi
commit
5218982ca3
1 muutettua tiedostoa jossa 12 lisäystä ja 20 poistoa
  1. 12 20
      examples/js/loaders/FBXLoader.js

+ 12 - 20
examples/js/loaders/FBXLoader.js

@@ -237,27 +237,27 @@
 
 				type = 'image/tiff';
 				break;
-				
+
  			case 'tga':
-			
+
 				if ( typeof THREE.TGALoader !== 'function' ) {
-					
+
 					console.warn( 'FBXLoader: THREE.TGALoader is required to load TGA textures' );
 					return;
 
 				} else {
-					
+
 					if ( THREE.Loader.Handlers.get( '.tga' ) === null ) {
 
 						THREE.Loader.Handlers.add( /\.tga$/i, new THREE.TGALoader() );
 
 					}
-					
+
 					type = 'image/tga';
 					break;
 
 				}
-				
+
 			default:
 
 				console.warn( 'FBXLoader: Image type "' + extension + '" is not supported.' );
@@ -357,17 +357,17 @@
 		}
 
 		var texture;
-	
+
 		if ( textureNode.FileName.slice( -3 ).toLowerCase() === 'tga' ) {
-			
+
  			texture = THREE.Loader.Handlers.get( '.tga' ).load( fileName );
-			
+
  		} else {
-			
+
  			texture = loader.load( fileName );
-			
+
  		}
-		
+
 		loader.setPath( currentPath );
 
 		return texture;
@@ -2140,14 +2140,6 @@
 
 			};
 
-			var offset = animationCurve.times[ 0 ];
-
-			for ( var i = 0; i < animationCurve.times.length; i++ ) {
-
-				animationCurve.times[ i ] -= offset;
-
-			}
-
 			var relationships = connections.get( animationCurve.id );
 
 			if ( relationships !== undefined ) {