3D 뷰어 로딩 팝업이 100%에서 남지 않도록 수정
loaded 이후에 progress가 loading을 다시 켜던 순서를 바로잡았습니다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
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);
|
applyUp(props.upAxis);
|
||||||
void nextTick(() => {
|
void nextTick(() => {
|
||||||
fitCamera();
|
fitCamera();
|
||||||
|
emit('progress', 1, '모델 준비 완료');
|
||||||
emit(
|
emit(
|
||||||
'loaded',
|
'loaded',
|
||||||
summarizeModel(importResult.model),
|
summarizeModel(importResult.model),
|
||||||
@@ -279,7 +280,6 @@ async function load(files: readonly File[]) {
|
|||||||
modelPropertyGroups(importResult.model),
|
modelPropertyGroups(importResult.model),
|
||||||
importResult.missingFiles ?? [],
|
importResult.missingFiles ?? [],
|
||||||
);
|
);
|
||||||
emit('progress', 1, '모델 준비 완료');
|
|
||||||
selectByKey(null);
|
selectByKey(null);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -136,9 +136,9 @@ function onFilesSelected(event: Event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onProgress(value: number, label: string) {
|
function onProgress(value: number, label: string) {
|
||||||
loading.value = true;
|
|
||||||
progress.value = value;
|
progress.value = value;
|
||||||
progressLabel.value = label;
|
progressLabel.value = label;
|
||||||
|
if (value < 1) loading.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onLoaded(
|
function onLoaded(
|
||||||
|
|||||||
Reference in new issue
Block a user