add editable selection center

This commit is contained in:
Stewart Allen 2024-09-02 13:57:47 -04:00
commit 200a7a2e4c
2 changed files with 30 additions and 27 deletions

View file

@ -262,6 +262,7 @@ const selection = {
for (let s of selection.groups()) {
s.floor();
}
call.selection_update();
return selection;
},
@ -269,6 +270,7 @@ const selection = {
for (let s of [...selection.groups(), ...selection.sketches()]) {
s.centerXY();
}
call.selection_update();
return selection;
},
@ -1157,7 +1159,6 @@ const tool = {
let group = mesh.api.group.new(models.map(m => m.ungroup()));
let bounds = group.bounds;
models.forEach(m => m.centerTo(bounds.mid));
console.log({ bounds, group, models });
return group;
}
},