From fc3b394330c152e4fe1686028371676389288537 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Mon, 15 Sep 2025 20:50:36 +0200 Subject: [PATCH] Do not paint while scaling the brush --- paint/sources/brush_nodes/brush_output_node.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paint/sources/brush_nodes/brush_output_node.ts b/paint/sources/brush_nodes/brush_output_node.ts index a00ec8c4..7f2e59e9 100644 --- a/paint/sources/brush_nodes/brush_output_node.ts +++ b/paint/sources/brush_nodes/brush_output_node.ts @@ -130,6 +130,15 @@ function brush_output_node_run(self: brush_output_node_t, from: i32) { return; } + // Do not paint while scaling the brush + let brush_scaling: bool = operator_shortcut(map_get(config_keymap, "brush_radius"), shortcut_type_t.DOWN) || + operator_shortcut(map_get(config_keymap, "brush_opacity"), shortcut_type_t.DOWN) || + operator_shortcut(map_get(config_keymap, "brush_angle"), shortcut_type_t.DOWN); + + if (context_raw.brush_locked || brush_scaling) { + return; + } + if (!slot_layer_is_visible(context_raw.layer) && !context_raw.paint2d) { return; }