mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-06 10:46:53 +08:00
[phaser] Closes #2449, proper basePath resolution if assets are served from root
This commit is contained in:
parent
068a2bb6d0
commit
2c69c2604f
@ -348,7 +348,7 @@ class SpineAtlasFile extends Phaser.Loader.MultiFile {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let basePath = file.src.match(/^.*\//);
|
let basePath = file.src.match(/^.*\//) ?? "";
|
||||||
for (var i = 0; i < textures.length; i++) {
|
for (var i = 0; i < textures.length; i++) {
|
||||||
var url = basePath + textures[i];
|
var url = basePath + textures[i];
|
||||||
var key = file.key + "!" + textures[i];
|
var key = file.key + "!" + textures[i];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user