add preference persist / restore
This commit is contained in:
parent
66ca161ccd
commit
2060819700
4 changed files with 34 additions and 7 deletions
|
|
@ -63,7 +63,6 @@ mesh.model = class MeshModel extends mesh.object {
|
|||
|
||||
this.file = file || 'unnamed';
|
||||
this.load(mesh || vertices, indices, normals);
|
||||
|
||||
// persist in db so it can be restored on page load
|
||||
mapp.db.space.put(this.id, { file, mesh });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue