From dcad565452c87052889f579a1d8f1276bba7df42 Mon Sep 17 00:00:00 2001 From: Gnlow Date: Mon, 22 Jan 2024 14:05:04 +0900 Subject: [PATCH] fix: ignore imageType fix #15 --- src/Entry.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Entry.ts b/src/Entry.ts index b20f17a..81b1146 100644 --- a/src/Entry.ts +++ b/src/Entry.ts @@ -127,11 +127,10 @@ export class Entry { this.textures = Object.fromEntries(await Promise.all( this.project.objects.map(({sprite}) => sprite.pictures.map( - async ({id, fileurl, filename, imageType, name}) => { - // 엔트리 svg 지원 이전에는 imageType 정보가 없었던 것으로 보임 + async ({id, fileurl, filename, name}) => { let url = `/image/${ filename - ? (filename + `.${imageType || "png"}`) + ? (filename + `.png`) : fileurl!.substring(1) }`