replace group inception defaults with promote to make it easier to preference
This commit is contained in:
parent
d3a6532bdb
commit
49f1729946
3 changed files with 7 additions and 15 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue