From f359abbe01fa3d7c8981db7f8b843252efbed665 Mon Sep 17 00:00:00 2001 From: Rindbee Date: Thu, 6 Oct 2022 12:08:52 +0800 Subject: [PATCH] Fix wrong condition used in `set_custom_color` --- scene/gui/tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index f82a853e567..db7d390b161 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -1163,7 +1163,7 @@ bool TreeItem::is_editable(int p_column) { void TreeItem::set_custom_color(int p_column, const Color &p_color) { ERR_FAIL_INDEX(p_column, cells.size()); - if (cells[p_column].custom_color == true) { + if (cells[p_column].custom_color && cells[p_column].color == p_color) { return; }