Skip to content

Commit 973bf76

Browse files
committed
MultiAtlasFiles that loaded their own external images would obtain incorrect path and URL values if the path had been changed by another file in the queue. They now retain the loader state and apply it to all child files during load.
1 parent b82d809 commit 973bf76

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/loader/filetypes/MultiAtlasFile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ var MultiAtlasFile = new Class({
9191
var currentPath = loader.path;
9292
var currentPrefix = loader.prefix;
9393

94-
var baseURL = GetFastValue(config, 'baseURL', currentBaseURL);
95-
var path = GetFastValue(config, 'path', currentPath);
96-
var prefix = GetFastValue(config, 'prefix', currentPrefix);
94+
var baseURL = GetFastValue(config, 'baseURL', this.baseURL);
95+
var path = GetFastValue(config, 'path', this.path);
96+
var prefix = GetFastValue(config, 'prefix', this.prefix);
9797
var textureXhrSettings = GetFastValue(config, 'textureXhrSettings');
9898

9999
loader.setBaseURL(baseURL);

0 commit comments

Comments
 (0)