replace group inception defaults with promote to make it easier to preference

This commit is contained in:
Stewart Allen 2022-01-11 22:18:12 -05:00
commit 49f1729946
3 changed files with 7 additions and 15 deletions

View file

@ -288,7 +288,7 @@ let tool = {
let group = api.group.new([new mesh.model({
file: `merged`,
mesh: data
})]).centerModels();
})]).promote();
api.selection.set([group]);
api.log.emit('merge complete').unpin();
});

View file

@ -88,6 +88,10 @@ mesh.group = class MeshGroup extends mesh.object {
return this;
}
promote() {
return this.centerModels().centerXY().floor();
}
// center objects to group bounds
// dependent on first being added to world/scene
centerModels() {