fix sketch centering

This commit is contained in:
Stewart Allen 2025-06-15 18:59:59 -04:00
commit 8c9ff300dc
2 changed files with 10 additions and 2 deletions

View file

@ -118,6 +118,11 @@ class MeshSketch extends meshObject {
return this.group;
}
get bounds() {
this.plane.geometry.computeBoundingBox();
return this.plane.geometry.boundingBox.clone();
}
get meshes() {
return this.group.children.filter(c => {
return c.sketch || (c.sketch_item && c.sketch_item.selected) ? c : undefined