This commit is contained in:
Yeicor
2024-03-10 17:36:48 +01:00
parent 49df7af970
commit f3672202ea
4 changed files with 8 additions and 6 deletions

View File

@@ -277,7 +277,9 @@ function updateBoundingBox() {
}
bb.applyMatrix4(new Matrix4().makeTranslation(props.viewer?.scene.getTarget()));
} else {
bb = SceneMgr.getBoundingBox(sceneDocument.value);
let boundingBox = SceneMgr.getBoundingBox(sceneDocument.value);
if (!boundingBox) return; // No models. Should not happen.
bb = boundingBox
}
// Define each edge of the bounding box, to draw a line for each axis
let corners = [