Add 'enabled' property to terrain bounds calculation

This commit is contained in:
2026-04-18 19:56:07 +02:00
parent 6b1330b15a
commit 44ef7899da

View File

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