allow recompute of workspace units in op chains. fix bounding box changes in indexed op chains

This commit is contained in:
Stewart Allen 2025-05-26 17:33:12 -06:00
commit b6573a4990
2 changed files with 60 additions and 56 deletions

View file

@ -704,7 +704,10 @@ class Widget {
getBoundingBox(refresh) {
if (!this.bounds || refresh || this.boundingBoxNeedsUpdate) {
this.bounds = new THREE.Box3().setFromArray(this.getGeoVertices());
this.bounds = new THREE.Box3().setFromArray(this.getGeoVertices({
translate: true,
unroll: false
}));
this.boundingBoxNeedsUpdate = false;
}
return this.bounds;