feat: recompute geometry after document load

This commit is contained in:
2026-08-02 21:48:42 -04:00
parent 10921a086e
commit fca408784d
4 changed files with 4 additions and 2 deletions

View File

@@ -472,6 +472,7 @@ export function createMockFacade(): BitBybitWebCadFacade {
clearFeatureShapes()
const document = cloneDocumentSnapshot(loaded)
commit({ ...state, document, selectedObjectId: '', task: null })
await recomputeDocumentAsync({ dirtyObjectIds: document.objects.map((object) => object.id) })
notify(`Loaded ${document.label}`)
return getState().document
}