From 2c0db3a1b448cf66b932adea10c6e7936f9d8f9c Mon Sep 17 00:00:00 2001 From: luboslenco Date: Thu, 16 Oct 2025 22:28:04 +0200 Subject: [PATCH] Fix adding brush nodes --- paint/sources/ui_nodes.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paint/sources/ui_nodes.ts b/paint/sources/ui_nodes.ts index dbc36a81..ad371c1d 100644 --- a/paint/sources/ui_nodes.ts +++ b/paint/sources/ui_nodes.ts @@ -1479,6 +1479,10 @@ function ui_nodes_make_node_preview(node: ui_node_t) { return; } + if (ui_nodes_canvas_type == canvas_type_t.BRUSH) { + return; + } + let nodes: ui_node_t[] = ui_nodes_get_canvas().nodes; if (array_index_of(nodes, node) == -1) { return;