@esotericsoftware/spine-canvaskit 4.2.64 → 4.2.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11857,7 +11857,7 @@ var spine = (() => {
|
|
|
11857
11857
|
async function loadTextureAtlas(ck, atlasFile, readFile) {
|
|
11858
11858
|
const atlas = new TextureAtlas(bufferToUtf8String(await readFile(atlasFile)));
|
|
11859
11859
|
const slashIndex = atlasFile.lastIndexOf("/");
|
|
11860
|
-
const parentDir = slashIndex >= 0 ? atlasFile.substring(0, slashIndex + 1)
|
|
11860
|
+
const parentDir = slashIndex >= 0 ? atlasFile.substring(0, slashIndex + 1) : "";
|
|
11861
11861
|
for (const page of atlas.pages) {
|
|
11862
11862
|
const texture = await CanvasKitTexture.fromFile(
|
|
11863
11863
|
ck,
|