mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[ts][canvaskit] Removed additional slash from texture url.
This commit is contained in:
parent
814f0ae8fd
commit
a4ea2979cd
@ -132,7 +132,7 @@ export async function loadTextureAtlas (
|
|||||||
const atlas = new TextureAtlas(bufferToUtf8String(await readFile(atlasFile)));
|
const atlas = new TextureAtlas(bufferToUtf8String(await readFile(atlasFile)));
|
||||||
const slashIndex = atlasFile.lastIndexOf("/");
|
const slashIndex = atlasFile.lastIndexOf("/");
|
||||||
const parentDir =
|
const parentDir =
|
||||||
slashIndex >= 0 ? atlasFile.substring(0, slashIndex + 1) + "/" : "";
|
slashIndex >= 0 ? atlasFile.substring(0, slashIndex + 1) : "";
|
||||||
for (const page of atlas.pages) {
|
for (const page of atlas.pages) {
|
||||||
const texture = await CanvasKitTexture.fromFile(
|
const texture = await CanvasKitTexture.fromFile(
|
||||||
ck,
|
ck,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user