瀏覽代碼

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

Michael Herzog 4 年之前
父節點
當前提交
5ae1d3cfc8
共有 2 個文件被更改,包括 2 次插入0 次删除
  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 );
 
 			}