Add 'enabled' property to terrain bounds calculation
This commit is contained in:
@@ -966,7 +966,8 @@ function combineColliderBounds(
|
|||||||
function getRuntimeTerrainSceneBounds(terrain: RuntimeTerrain): RuntimeSceneBounds {
|
function getRuntimeTerrainSceneBounds(terrain: RuntimeTerrain): RuntimeSceneBounds {
|
||||||
const bounds = getTerrainBounds({
|
const bounds = getTerrainBounds({
|
||||||
...terrain,
|
...terrain,
|
||||||
kind: "terrain"
|
kind: "terrain",
|
||||||
|
enabled: true
|
||||||
});
|
});
|
||||||
const min = cloneVec3(bounds.min);
|
const min = cloneVec3(bounds.min);
|
||||||
const max = cloneVec3(bounds.max);
|
const max = cloneVec3(bounds.max);
|
||||||
|
|||||||
Reference in New Issue
Block a user