mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
MultiFile key fix.
This commit is contained in:
parent
2f976acb13
commit
4a5a81e0f2
1 changed files with 5 additions and 3 deletions
|
@ -178,7 +178,7 @@ var SpineFile = new Class({
|
|||
{
|
||||
var textureURL = textures[i];
|
||||
|
||||
var key = '_SP_' + textureURL;
|
||||
var key = 'SP' + this.multiKeyIndex + '_' + textureURL;
|
||||
|
||||
var image = new ImageFile(loader, key, textureURL, textureXhrSettings);
|
||||
|
||||
|
@ -228,8 +228,10 @@ var SpineFile = new Class({
|
|||
}
|
||||
else
|
||||
{
|
||||
var key = file.key.substr(4).trim();
|
||||
|
||||
var src = file.key.trim();
|
||||
var pos = src.indexOf('_');
|
||||
var key = src.substr(pos + 1);
|
||||
|
||||
this.loader.textureManager.addImage(key, file.data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue