Handle model-instance creation preview in rebuildModelInstances method

This commit is contained in:
2026-04-03 01:10:42 +02:00
parent e5a6da5a1e
commit fbde0094bf

View File

@@ -307,6 +307,13 @@ export class ViewportHost {
if (this.currentDocument !== null) {
this.rebuildModelInstances(this.currentDocument, this.currentSelection);
}
if (this.creationPreview?.target.kind === "model-instance") {
const currentPreview = this.creationPreview;
this.creationPreview = null;
this.clearCreationPreviewObject();
this.syncCreationPreview(currentPreview);
}
}
setBrushSelectionChangeHandler(handler: ((selection: EditorSelection) => void) | null) {