From 4380cfe420642d555b52abc4f52246d3356ff844 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Thu, 16 Jan 2025 20:38:03 +0100 Subject: [PATCH] Restrict baking to 3d view --- base/sources/ui_view2d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/base/sources/ui_view2d.ts b/base/sources/ui_view2d.ts index c37a52910..8fc01d3eb 100644 --- a/base/sources/ui_view2d.ts +++ b/base/sources/ui_view2d.ts @@ -466,12 +466,14 @@ function ui_view2d_update() { } ///if (is_paint || is_sculpt) - let decal: bool = context_is_decal(); let decal_mask: bool = context_is_decal_mask_paint(); - let set_clone_source: bool = context_raw.tool == workspace_tool_t.CLONE && operator_shortcut(map_get(config_keymap, "set_clone_source") + "+" + map_get(config_keymap, "action_paint"), shortcut_type_t.DOWN); + let set_clone_source: bool = context_raw.tool == workspace_tool_t.CLONE && + operator_shortcut(map_get(config_keymap, "set_clone_source") + "+" + map_get(config_keymap, "action_paint"), shortcut_type_t.DOWN); + let bake: bool = context_raw.tool == workspace_tool_t.BAKE; if (ui_view2d_type == view_2d_type_t.LAYER && !ui_view2d_text_input_hover && + !bake && (operator_shortcut(map_get(config_keymap, "action_paint"), shortcut_type_t.DOWN) || operator_shortcut(map_get(config_keymap, "brush_ruler") + "+" + map_get(config_keymap, "action_paint"), shortcut_type_t.DOWN) || decal_mask ||