fix sketch centering
This commit is contained in:
parent
4d8622eed6
commit
8c9ff300dc
2 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue