fix bounding box update for model changes. add menu for it

This commit is contained in:
Stewart Allen 2022-01-08 22:42:57 -05:00
commit a6b85d4a59
4 changed files with 8 additions and 1 deletions

View file

@ -89,9 +89,9 @@ function restore_space() {
let models = data.map(id => {
let md = cached[id];
let m = md ? new mesh.model(md, id) : undefined;
if (m) mesh.api.log.emit(`restored | ${m.file}`);
return m;
}).filter(m => m);
mesh.api.log.emit(`restored ${models.length} model(s)`);
mesh.api.group.new(models, id)
.centerModels()
.centerXY()