From ab300a88cdc57e572d14ddf56a7eda497c7af0e4 Mon Sep 17 00:00:00 2001 From: Avaer Kazmer Date: Wed, 27 Nov 2019 05:51:36 -0500 Subject: [PATCH] Try to load unknown textures in FBXLoader.js --- FBXLoader.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/FBXLoader.js b/FBXLoader.js index 5cc6a14..98d9ad2 100644 --- a/FBXLoader.js +++ b/FBXLoader.js @@ -384,7 +384,8 @@ THREE.FBXLoader = ( function () { if ( loader === null ) { console.warn( 'FBXLoader: TGA loader not found, creating placeholder texture for', textureNode.RelativeFilename ); - texture = new THREE.Texture(); + // texture = new THREE.Texture(); + texture = this.textureLoader.load( fileName ); } else { @@ -395,7 +396,8 @@ THREE.FBXLoader = ( function () { } else if ( extension === 'psd' ) { console.warn( 'FBXLoader: PSD textures are not supported, creating placeholder texture for', textureNode.RelativeFilename ); - texture = new THREE.Texture(); + // texture = new THREE.Texture(); + texture = this.textureLoader.load( fileName ); } else {