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:
Richard Davey 2020-09-29 12:13:25 +01:00
parent 09a6d0e862
commit 3f2ad4dd79

View file

@ -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