mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
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.
This commit is contained in:
parent
b82d809ec6
commit
973bf76b14
1 changed files with 3 additions and 3 deletions
|
@ -91,9 +91,9 @@ var MultiAtlasFile = new Class({
|
|||
var currentPath = loader.path;
|
||||
var currentPrefix = loader.prefix;
|
||||
|
||||
var baseURL = GetFastValue(config, 'baseURL', currentBaseURL);
|
||||
var path = GetFastValue(config, 'path', currentPath);
|
||||
var prefix = GetFastValue(config, 'prefix', currentPrefix);
|
||||
var baseURL = GetFastValue(config, 'baseURL', this.baseURL);
|
||||
var path = GetFastValue(config, 'path', this.path);
|
||||
var prefix = GetFastValue(config, 'prefix', this.prefix);
|
||||
var textureXhrSettings = GetFastValue(config, 'textureXhrSettings');
|
||||
|
||||
loader.setBaseURL(baseURL);
|
||||
|
|
Loading…
Add table
Reference in a new issue