feat: recompute geometry after document load
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user