Implement selection change handling in ViewportHost, triggering refresh of paths, markers, and model instances, and update related integration tests.

This commit is contained in:
2026-04-27 00:02:26 +02:00
parent ac815f4260
commit 7fb757ee1c
12 changed files with 37 additions and 0 deletions

View File

@@ -6887,6 +6887,21 @@ export class ViewportHost {
this.whiteboxHoverLabelChangeHandler?.(label);
}
private refreshSelectionPresentation() {
if (this.currentDocument === null) {
return;
}
this.refreshBrushPresentation();
this.refreshTerrainPresentation();
this.rebuildPaths(this.currentDocument, this.currentSelection);
this.rebuildEntityMarkers(this.currentDocument, this.currentSelection);
this.rebuildModelInstances(this.currentDocument, this.currentSelection);
this.applyTransformPreview();
this.syncTransformGizmo();
this.syncTerrainBrushPreview();
}
private setHoveredSelection(selection: EditorSelection) {
if (areEditorSelectionsEqual(this.hoveredSelection, selection)) {
return;