From 294adfc7075e6cac945c04d89b1cc784453ae216 Mon Sep 17 00:00:00 2001 From: Nick Tipping Date: Wed, 4 Dec 2019 17:52:08 +0000 Subject: [PATCH] Load images from atlas path. --- plugins/spine/src/SpineFile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/spine/src/SpineFile.js b/plugins/spine/src/SpineFile.js index ae0a4952c..752a947a5 100644 --- a/plugins/spine/src/SpineFile.js +++ b/plugins/spine/src/SpineFile.js @@ -166,7 +166,7 @@ var SpineFile = new Class({ var currentPrefix = loader.prefix; var baseURL = GetFastValue(config, 'baseURL', this.baseURL); - var path = GetFastValue(config, 'path', this.path); + var path = GetFastValue(config, 'path', file.src.match(/^.*\//))[0]; var prefix = GetFastValue(config, 'prefix', this.prefix); var textureXhrSettings = GetFastValue(config, 'textureXhrSettings');