Add activeSelectionId to ViewportPanel and updateViewportHost
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user