fix synchronisation between users
This commit is contained in:
parent
410f82201d
commit
85dce88ec2
4 changed files with 16 additions and 7 deletions
|
@ -189,7 +189,7 @@ function readUrl(urlString) {
|
|||
}
|
||||
|
||||
if (wallEvent.kind.event == "interact") {
|
||||
user.simulate(chunkAllocator, wall, wallEvent.kind.interactions);
|
||||
user.simulate(chunkAllocator, brushRenderer, wall, wallEvent.kind.interactions);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -281,7 +281,10 @@ function readUrl(urlString) {
|
|||
cursor += edit.data.size;
|
||||
}
|
||||
|
||||
session.sendEdit(editRecords, new Blob(dataParts));
|
||||
let data = new Blob(dataParts);
|
||||
|
||||
console.log("sending edit data. record count:", editRecords.length, "data blob:", data);
|
||||
session.sendEdit(editRecords, data);
|
||||
});
|
||||
|
||||
canvasRenderer.addEventListener(".viewportUpdate", () => reticleRenderer.render());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue