Browse Source

Fix node search

luboslenco 1 year ago
parent
commit
56d9d4dd5f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      base/sources/ui_nodes.ts

+ 3 - 0
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);
 }