persist object scale / rotation / position

This commit is contained in:
Stewart Allen 2022-01-09 21:05:14 -05:00
commit 55b59d9cb1
7 changed files with 81 additions and 22 deletions

View file

@ -219,16 +219,15 @@ mesh.model = class MeshModel extends mesh.object {
this.group = undefined;
this.removed = 'pending';
} else {
// update worker state
worker.object_destroy({id: this.id});
// update object store
mesh.db.space.remove(this.id);
// manage lifecycle with worker, mesh app caches, etc
this.destroy();
// tag removed for debugging
this.removed = 'complete';
}
}
updateBoundsBox() {
this.updateMatrix();
mesh.util.defer(this.group.deferUBB);
}