mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
Using Loader.setPath
to define the Spine assets locations could error if trying to load multiple files from different folders. It will now retain the path state at the time of invocation, rather than during the load.
This commit is contained in:
parent
999967c772
commit
b82d809ec6
1 changed files with 3 additions and 3 deletions
|
@ -165,9 +165,9 @@ var SpineFile = 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…
Reference in a new issue