Merge branch 'rel-4.3' of github.com:GridSpace/grid-apps into rel-4.3

This commit is contained in:
Stewart Allen 2025-08-21 22:33:51 -04:00
commit ddc4dfe6a3
3 changed files with 15 additions and 5 deletions

View file

@ -49,8 +49,12 @@ function update_info() {
const ui = api.ui;
let bounds = new THREE.Box3(), track;
for_meshes(mesh => {
bounds = bounds.union(mesh.getBoundingBox());
let box = mesh.getBoundingBox().clone();
track = mesh.widget.track;
let {pos} = track
box.min.add(pos);
box.max.add(pos);
bounds = bounds.union(box);
});
if (bounds.min.x === Infinity) {
if (selectedMeshes.length === 0) {