|
|
@@ -437,21 +437,10 @@ class FBXTreeParser {
|
|
|
// load a texture specified as a blob or data URI, or via an external URL using TextureLoader
|
|
|
loadTexture( textureNode, images ) {
|
|
|
|
|
|
- const nonNativeExtensions = new Set( [ 'tga', 'tif', 'tiff', 'exr', 'dds', 'hdr', 'ktx2' ] );
|
|
|
-
|
|
|
const extension = textureNode.FileName.split( '.' ).pop().toLowerCase();
|
|
|
|
|
|
- const loader = nonNativeExtensions.has( extension ) ? this.manager.getHandler( `.${extension}` ) : this.textureLoader;
|
|
|
-
|
|
|
- if ( ! loader ) {
|
|
|
-
|
|
|
- console.warn(
|
|
|
- `FBXLoader: ${extension.toUpperCase()} loader not found, creating placeholder texture for`,
|
|
|
- textureNode.RelativeFilename
|
|
|
- );
|
|
|
- return new Texture();
|
|
|
-
|
|
|
- }
|
|
|
+ let loader = this.manager.getHandler( `.${extension}` );
|
|
|
+ if ( loader === null) loader = this.textureLoader;
|
|
|
|
|
|
const loaderPath = loader.path;
|
|
|
|