mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
SpineFile
will now check to see if another identical atlas in the load queue is already loading the texture it needs and will no longer get locked waiting for a file that will never complete. This allows multiple skeleton JSONs to use the same atlas data. Fix #5331
This commit is contained in:
parent
09a6d0e862
commit
3f2ad4dd79
1 changed files with 5 additions and 2 deletions
|
@ -180,9 +180,12 @@ var SpineFile = new Class({
|
|||
|
||||
var image = new ImageFile(loader, key, textureURL, textureXhrSettings);
|
||||
|
||||
this.addToMultiFile(image);
|
||||
if (!loader.keyExists(image))
|
||||
{
|
||||
this.addToMultiFile(image);
|
||||
|
||||
loader.addFile(image);
|
||||
loader.addFile(image);
|
||||
}
|
||||
}
|
||||
|
||||
// Reset the loader settings
|
||||
|
|
Loading…
Reference in a new issue