Include terrain data when resolving viewport document bounds
This commit is contained in:
@@ -539,8 +539,10 @@ export function resolveViewportDocumentBounds(
|
||||
includeModelInstance(bounds, modelInstance, document.assets[modelInstance.assetId]);
|
||||
}
|
||||
|
||||
const terrains = getTerrains(document.terrains);
|
||||
|
||||
for (const path of Object.values(document.paths)) {
|
||||
includePath(bounds, path);
|
||||
includePath(bounds, path, terrains);
|
||||
}
|
||||
|
||||
for (const entity of Object.values(document.entities)) {
|
||||
|
||||
Reference in New Issue
Block a user