From 56d9d4dd5fcf272f2d7f7cff783c3a0fdf4f951f Mon Sep 17 00:00:00 2001 From: luboslenco Date: Fri, 13 Sep 2024 23:20:36 +0200 Subject: [PATCH] Fix node search --- base/sources/ui_nodes.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/sources/ui_nodes.ts b/base/sources/ui_nodes.ts index 92ef0fa1..7e4bb756 100644 --- a/base/sources/ui_nodes.ts +++ b/base/sources/ui_nodes.ts @@ -639,6 +639,8 @@ function ui_nodes_node_search(x: i32 = -1, y: i32 = -1, done: ()=>void = null) { let enter: bool = keyboard_down("enter"); let count: i32 = 0; let BUTTON_COL: i32 = ui.ops.theme.BUTTON_COL; + let FILL_BUTTON_BG: bool = ui.ops.theme.FILL_BUTTON_BG; + ui.ops.theme.FILL_BUTTON_BG = true; ///if (is_paint || is_sculpt) let node_list: node_list_t[] = ui_nodes_canvas_type == canvas_type_t.MATERIAL ? nodes_material_list : nodes_brush_list; @@ -689,6 +691,7 @@ function ui_nodes_node_search(x: i32 = -1, y: i32 = -1, done: ()=>void = null) { search_handle.text = ""; } ui.ops.theme.BUTTON_COL = BUTTON_COL; + ui.ops.theme.FILL_BUTTON_BG = FILL_BUTTON_BG; }, x, y); }