From b82d809ec651eb9d86e26779610752c473f62c46 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Fri, 27 Sep 2019 16:11:15 +0100 Subject: [PATCH] Using `Loader.setPath` to define the Spine assets locations could error if trying to load multiple files from different folders. It will now retain the path state at the time of invocation, rather than during the load. --- plugins/spine/src/SpineFile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/spine/src/SpineFile.js b/plugins/spine/src/SpineFile.js index d437aa659..ba5aa9635 100644 --- a/plugins/spine/src/SpineFile.js +++ b/plugins/spine/src/SpineFile.js @@ -165,9 +165,9 @@ var SpineFile = new Class({ var currentPath = loader.path; var currentPrefix = loader.prefix; - var baseURL = GetFastValue(config, 'baseURL', currentBaseURL); - var path = GetFastValue(config, 'path', currentPath); - var prefix = GetFastValue(config, 'prefix', currentPrefix); + var baseURL = GetFastValue(config, 'baseURL', this.baseURL); + var path = GetFastValue(config, 'path', this.path); + var prefix = GetFastValue(config, 'prefix', this.prefix); var textureXhrSettings = GetFastValue(config, 'textureXhrSettings'); loader.setBaseURL(baseURL);