From e6170ed31bebba50cd18698b045179c074f7d174 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Sat, 18 Jul 2026 13:27:24 +0200 Subject: [PATCH] paint: fill layer creation fixes --- paint/sources/util/util_layer.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paint/sources/util/util_layer.c b/paint/sources/util/util_layer.c index c19ec400..02ca7e2c 100644 --- a/paint/sources/util/util_layer.c +++ b/paint/sources/util/util_layer.c @@ -427,6 +427,10 @@ void layers_update_path_layers() { } } +bool layers_tool_paints_fill_layer(tool_type_t tool) { + return tool == TOOL_TYPE_BAKE || tool == TOOL_TYPE_PICKER || tool == TOOL_TYPE_MATERIAL || tool == TOOL_TYPE_COLORID; +} + void layers_update_fill_layer(bool parse_paint) { gpu_texture_t *current = _draw_current; bool in_use = gpu_in_use; @@ -463,6 +467,9 @@ void layers_update_fill_layer(bool parse_paint) { g_context->rdirty = 2; g_context->tool = _tool; g_context->fill_type = _fill_type; + if (parse_paint && layers_tool_paints_fill_layer(_tool)) { + make_material_parse_paint_material(false); + } if (in_use) draw_begin(current, false, 0); }