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:
Richard Davey 2024-02-01 14:02:21 +00:00
parent 2d6594cb18
commit a6e325807c
2 changed files with 2 additions and 2 deletions

View file

@ -164,7 +164,7 @@ var SpineFile = new Class({
var currentPrefix = loader.prefix; var currentPrefix = loader.prefix;
var baseURL = GetFastValue(config, 'baseURL', this.baseURL); 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 prefix = GetFastValue(config, 'prefix', this.prefix);
var textureXhrSettings = GetFastValue(config, 'textureXhrSettings'); var textureXhrSettings = GetFastValue(config, 'textureXhrSettings');

View file

@ -164,7 +164,7 @@ var SpineFile = new Class({
var currentPrefix = loader.prefix; var currentPrefix = loader.prefix;
var baseURL = GetFastValue(config, 'baseURL', this.baseURL); 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 prefix = GetFastValue(config, 'prefix', this.prefix);
var textureXhrSettings = GetFastValue(config, 'textureXhrSettings'); var textureXhrSettings = GetFastValue(config, 'textureXhrSettings');