Include foliage mask handling in terrain scene bounds calculation

This commit is contained in:
2026-05-02 04:20:16 +02:00
parent 96cb9669f6
commit 951dd8fb19

View File

@@ -1173,7 +1173,8 @@ function getRuntimeTerrainSceneBounds(terrain: RuntimeTerrain): RuntimeSceneBoun
const bounds = getTerrainBounds({ const bounds = getTerrainBounds({
...terrain, ...terrain,
kind: "terrain", kind: "terrain",
enabled: true enabled: true,
foliageMasks: {}
}); });
const min = cloneVec3(bounds.min); const min = cloneVec3(bounds.min);
const max = cloneVec3(bounds.max); const max = cloneVec3(bounds.max);