mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 22:48:34 +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);
|
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
|
// Reset the loader settings
|
||||||
|
|
Loading…
Add table
Reference in a new issue