Update brush bounds calculation in viewport-focus.ts

This commit is contained in:
2026-04-15 07:57:07 +02:00
parent e4d2a44414
commit 1fd6e298aa

View File

@@ -13,7 +13,7 @@ import type { ScenePath } from "../document/paths";
import type { EntityInstance } from "../entities/entity-instances";
import type { ModelInstance } from "../assets/model-instances";
import type { ProjectAssetRecord } from "../assets/project-assets";
import { getBoxBrushBounds } from "../geometry/box-brush";
import { getBrushBounds } from "../geometry/whitebox-brush";
const PLAYER_START_FOCUS_HALF_EXTENTS: Vec3 = {
x: 0.35,
@@ -92,7 +92,7 @@ function createBrushFocusTarget(brush: BoxBrush): ViewportFocusTarget {
}
function includeBrush(bounds: FocusBoundsAccumulator, brush: BoxBrush) {
const brushBounds = getBoxBrushBounds(brush);
const brushBounds = getBrushBounds(brush);
includeBounds(bounds, brushBounds.min, brushBounds.max);
}