improve indexdb promised. fix multiple spaces access. add workspace persist + restore for mesh

This commit is contained in:
Stewart Allen 2022-01-03 17:13:50 -05:00
commit 96145b370b
9 changed files with 192 additions and 64 deletions

View file

@ -27,11 +27,6 @@ function cacheUpdate(id, data) {
Object.assign(cache[id], data);
}
worker.bind("debug", (data, send) => {
console.log({work_cache: cache});
send.done();
});
let model = {
load(data) {
let { vertices, name, id } = data;
@ -93,10 +88,16 @@ let object = {
}
};
worker.bind("debug", (data, send) => {
console.log({work_cache: cache});
});
worker.bindObject({
model,
group,
object
});
worker.ready();
})();