Include terrain data when resolving viewport document bounds

This commit is contained in:
2026-05-12 23:36:28 +02:00
parent 8d1fbb57f7
commit 6a595469e6

View File

@@ -539,8 +539,10 @@ export function resolveViewportDocumentBounds(
includeModelInstance(bounds, modelInstance, document.assets[modelInstance.assetId]); includeModelInstance(bounds, modelInstance, document.assets[modelInstance.assetId]);
} }
const terrains = getTerrains(document.terrains);
for (const path of Object.values(document.paths)) { for (const path of Object.values(document.paths)) {
includePath(bounds, path); includePath(bounds, path, terrains);
} }
for (const entity of Object.values(document.entities)) { for (const entity of Object.values(document.entities)) {