3D 뷰어 로딩 팝업이 100%에서 남지 않도록 수정

loaded 이후에 progress가 loading을 다시 켜던 순서를 바로잡았습니다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ysj7705andCursor committed 2026-07-22 14:49:08 +09:00
1 parent b9dfb468e7
commit 00dfb36126
2 files changed
+2 -2

No files matched your search

@@ -272,6 +272,7 @@ async function load(files: readonly File[]) {
applyUp(props.upAxis);
void nextTick(() => {
fitCamera();
emit('progress', 1, '모델 준비 완료');
emit(
'loaded',
summarizeModel(importResult.model),
@@ -279,7 +280,6 @@ async function load(files: readonly File[]) {
modelPropertyGroups(importResult.model),
importResult.missingFiles ?? [],
);
emit('progress', 1, '모델 준비 완료');
selectByKey(null);
});
},
@@ -136,9 +136,9 @@ function onFilesSelected(event: Event) {
}
function onProgress(value: number, label: string) {
loading.value = true;
progress.value = value;
progressLabel.value = label;
if (value < 1) loading.value = true;
}
function onLoaded(