Handle model-instance creation preview in rebuildModelInstances method
This commit is contained in:
@@ -307,6 +307,13 @@ export class ViewportHost {
|
|||||||
if (this.currentDocument !== null) {
|
if (this.currentDocument !== null) {
|
||||||
this.rebuildModelInstances(this.currentDocument, this.currentSelection);
|
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) {
|
setBrushSelectionChangeHandler(handler: ((selection: EditorSelection) => void) | null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user