Browse Source

FBXLoader: Configure TGALoader with the correct path. (#21863)

Michael Herzog 4 years ago
parent
commit
5ae1d3cfc8
2 changed files with 2 additions and 0 deletions
  1. 1 0
      examples/js/loaders/FBXLoader.js
  2. 1 0
      examples/jsm/loaders/FBXLoader.js

+ 1 - 0
examples/js/loaders/FBXLoader.js

@@ -364,6 +364,7 @@
 
 				} else {
 
+					loader.setPath( this.textureLoader.path );
 					texture = loader.load( fileName );
 
 				}

+ 1 - 0
examples/jsm/loaders/FBXLoader.js

@@ -431,6 +431,7 @@ class FBXTreeParser {
 
 			} else {
 
+				loader.setPath( this.textureLoader.path );
 				texture = loader.load( fileName );
 
 			}