improve indexdb promised. fix multiple spaces access. add workspace persist + restore for mesh
This commit is contained in:
parent
a5cf4a7a87
commit
96145b370b
9 changed files with 192 additions and 64 deletions
|
|
@ -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();
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Reference in a new issue