add editable selection center
This commit is contained in:
parent
02fb4ef8a6
commit
200a7a2e4c
2 changed files with 30 additions and 27 deletions
|
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue