summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-06 08:56:52 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-06 08:56:52 +0200
commitd414872bfe47b66a5f7a1896815a7b3180625ee3 (patch)
treed2f48b2524805d32f94778aca2c2fe2ef16a2dc2 /scene/gui
parent48e6f84295e7afb2398d44d88156997f10c4782e (diff)
parentf359abbe01fa3d7c8981db7f8b843252efbed665 (diff)
Merge pull request #66961 from Rindbee/fix-set_custom_color
Fix wrong condition used in `set_custom_color`
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index f82a853e56..db7d390b16 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;
}