|
@@ -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 ) {
|