Automatically finalize any delayed update objects

This commit is contained in:
Yousef Khadadeh 2025-12-18 23:37:37 +03:00
parent 8defbe7569
commit 66d372d810
4 changed files with 38 additions and 7 deletions

View file

@ -32,7 +32,7 @@ const SkColor4f& CanvasTheme::get_tool_front_color() const {
void CanvasTheme::set_back_color(const Vector3f& newBackColor) {
if(backColor && newBackColor != backColor->c) {
backColor->c = newBackColor;
world.delayedUpdateObjectManager.send_update_to_all<BackColor>(backColor, true);
world.delayedUpdateObjectManager.send_update_to_all<BackColor>(backColor, false);
set_tool_front_color(world.drawProg);
}
}