Browse Source

[ts][canvaskit] Removed additional slash from texture url.

Davide Tantillo 10 months ago
parent
commit
a4ea2979cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spine-ts/spine-canvaskit/src/index.ts

+ 1 - 1
spine-ts/spine-canvaskit/src/index.ts

@@ -132,7 +132,7 @@ export async function loadTextureAtlas (
 	const atlas = new TextureAtlas(bufferToUtf8String(await readFile(atlasFile)));
 	const slashIndex = atlasFile.lastIndexOf("/");
 	const parentDir =
-		slashIndex >= 0 ? atlasFile.substring(0, slashIndex + 1) + "/" : "";
+		slashIndex >= 0 ? atlasFile.substring(0, slashIndex + 1) : "";
 	for (const page of atlas.pages) {
 		const texture = await CanvasKitTexture.fromFile(
 			ck,