From 4c0ab0780936538bf9fb4bf2f11f61eafdce76d2 Mon Sep 17 00:00:00 2001 From: ray90514 Date: Thu, 11 Mar 2021 22:52:05 +0800 Subject: [PATCH] Fix Tree focus border disappears when Border Size is set to 0 --- editor/editor_themes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index fe748b81c3..030d36ff78 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -852,7 +852,7 @@ Ref create_editor_theme(const Ref p_theme) { Ref style_tree_cursor = style_default->duplicate(); style_tree_cursor->set_draw_center(false); - style_tree_cursor->set_border_width_all(border_width); + style_tree_cursor->set_border_width_all(MAX(1, border_width)); style_tree_cursor->set_border_color(contrast_color_1); Ref style_tree_title = style_default->duplicate();