mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 04:03:21 +00:00
The SpineFile.onFileComplete
handler was running a regular expression against file.src
instead of file.url
, sometimes leading to double paths in the atlas paths on loading. Fix #6642
This commit is contained in:
parent
2d6594cb18
commit
a6e325807c
2 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ var SpineFile = new Class({
|
|||
var currentPrefix = loader.prefix;
|
||||
|
||||
var baseURL = GetFastValue(config, 'baseURL', this.baseURL);
|
||||
var path = GetFastValue(config, 'path', file.src.match(/^.*\//))[0];
|
||||
var path = GetFastValue(config, 'path', file.url.match(/^.*\//))[0];
|
||||
var prefix = GetFastValue(config, 'prefix', this.prefix);
|
||||
var textureXhrSettings = GetFastValue(config, 'textureXhrSettings');
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ var SpineFile = new Class({
|
|||
var currentPrefix = loader.prefix;
|
||||
|
||||
var baseURL = GetFastValue(config, 'baseURL', this.baseURL);
|
||||
var path = GetFastValue(config, 'path', file.src.match(/^.*\//))[0];
|
||||
var path = GetFastValue(config, 'path', file.url.match(/^.*\//))[0];
|
||||
var prefix = GetFastValue(config, 'prefix', this.prefix);
|
||||
var textureXhrSettings = GetFastValue(config, 'textureXhrSettings');
|
||||
|
||||
|
|
Loading…
Reference in a new issue