From dc9b3fe9109319fbe6a157757df4a3b6edfd1e25 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Sun, 14 Jun 2026 23:39:55 +0200 Subject: [PATCH] paint: fix brush update --- paint/sources/render/render_path_base.c | 5 +++++ paint/sources/ui/ui_base.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/paint/sources/render/render_path_base.c b/paint/sources/render/render_path_base.c index c62343e2..31e48fde 100644 --- a/paint/sources/render/render_path_base.c +++ b/paint/sources/render/render_path_base.c @@ -158,6 +158,11 @@ void render_path_base_commands(void (*draw_commands)(void)) { if (render_path_base_is_cached()) { return; } + + if (base_ui_enabled) { + util_brush_update(); + } + render_path_base_begin(); render_path_paint_begin(); diff --git a/paint/sources/ui/ui_base.c b/paint/sources/ui/ui_base.c index 45b5352e..8c138f16 100644 --- a/paint/sources/ui/ui_base.c +++ b/paint/sources/ui/ui_base.c @@ -222,7 +222,6 @@ void ui_base_update(void *_) { util_touch_update(); util_stencil_transform(); util_select_update(); - util_brush_update(); util_layer_update_preview(); util_shortcut_undo_redo(); util_shortcut_global();