resolve centering model vs group so rotation works
This commit is contained in:
parent
45d59d0bbc
commit
9bb758f323
3 changed files with 24 additions and 5 deletions
|
|
@ -103,7 +103,10 @@ broker.subscribe('space_init', data => {
|
|||
|
||||
// add object loader
|
||||
broker.subscribe('space_load', data => {
|
||||
mesh.api.group.new(data.flat().map(el => new mesh.model(el))).centerXY().floor();
|
||||
mesh.api.group.new(data.flat().map(el => new mesh.model(el)))
|
||||
.centerModels()
|
||||
.centerXY()
|
||||
.floor();
|
||||
});
|
||||
|
||||
// remove version cache bust from url
|
||||
|
|
|
|||
Loading…
Reference in a new issue