Add activeSelectionId to ViewportPanel and updateViewportHost

This commit is contained in:
2026-04-15 14:57:05 +02:00
parent 2a5800eb08
commit c6ce76be04
2 changed files with 8 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ interface ViewportPanelProps {
whiteboxSnapStep: number;
viewportGridVisible: boolean;
selection: EditorSelection;
activeSelectionId: string | null;
toolMode: ToolMode;
toolPreview: ViewportToolPreview;
transformSession: TransformSessionState;
@@ -132,6 +133,7 @@ export function ViewportPanel({
whiteboxSnapStep,
viewportGridVisible,
selection,
activeSelectionId,
toolMode,
toolPreview,
transformSession,
@@ -191,6 +193,7 @@ export function ViewportPanel({
whiteboxSnapStep={whiteboxSnapStep}
viewportGridVisible={viewportGridVisible}
selection={selection}
activeSelectionId={activeSelectionId}
toolMode={toolMode}
toolPreview={toolPreview}
transformSession={transformSession}

View File

@@ -925,7 +925,11 @@ export class ViewportHost {
this.applyWorld();
if (this.currentDocument !== null) {
this.updateDocument(this.currentDocument, this.currentSelection);
this.updateDocument(
this.currentDocument,
this.currentSelection,
this.currentActiveSelectionId
);
}
}