Просмотр исходного кода

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

Michael Herzog 4 лет назад
Родитель
Сommit
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 {
 				} else {
 
 
+					loader.setPath( this.textureLoader.path );
 					texture = loader.load( fileName );
 					texture = loader.load( fileName );
 
 
 				}
 				}

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

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