Reliable channel used to finalize component updates

This commit is contained in:
Yousef Khadadeh 2025-10-01 08:59:44 +03:00
parent 14c6e7ceac
commit 278792a0ff
11 changed files with 36 additions and 28 deletions

View file

@ -30,7 +30,7 @@ void EditTool::gui_toolbox() {
bool editHappened = controls.compEditTool->edit_gui(a);
if(editHappened) {
a->commit_update(drawP);
a->client_send_update(drawP);
a->client_send_update(drawP, true);
}
}
}
@ -50,7 +50,7 @@ void EditTool::switch_tool(DrawingProgramToolType newTool) {
if(a && a->collabListInfo.lock()) {
controls.compEditTool->commit_edit_updates(a, controls.prevData);
a->commit_update(drawP);
a->client_send_update(drawP);
a->client_send_update(drawP, true);
}
controls.compToEdit.reset();
controls.pointHandles.clear();
@ -162,7 +162,7 @@ void EditTool::tool_update() {
newPos = cwise_vec_min((*controls.pointDragging->max - Vector2f{controls.pointDragging->minimumDistanceBetweenBoundsAndPoint, controls.pointDragging->minimumDistanceBetweenBoundsAndPoint}).eval(), newPos);
*controls.pointDragging->p = newPos;
a->commit_update(drawP);
a->client_send_update(drawP);
a->client_send_update(drawP, false);
}
isMovingPoint = true;
}