fix(sketchup): disable progress update for now till replacing with objectloader2

This commit is contained in:
oguzhankoral
2025-10-14 20:58:14 +03:00
parent 99ebd403c7
commit 28a5d7e5f3
+5 -3
View File
@@ -127,15 +127,17 @@ export class SketchupBridge extends BaseBridge {
objectId: result.data.project.model.version.referencedObject as string
})
const updateProgress = (e: {
const updateProgress = (_: {
stage: ProgressStage
current: number
total: number
}) => {
const progress = e.current / e.total
// TODO: replace object loader with loader 2, for now progress is not return total and it end up with infinity
// const progress = e.current / e.total
hostAppStore.handleModelProgressEvents({
modelCardId: eventPayload.modelCardId,
progress: { status: 'Downloading', progress }
progress: { status: 'Downloading' }
})
}