From b469ff17e2e1171f50a279198a768857192c7d1a Mon Sep 17 00:00:00 2001 From: dankan1890 Date: Sun, 6 Oct 2019 22:07:50 +0200 Subject: [PATCH] Added missing bind_method to TreeItem::get_custom_color(). Fix #32595 --- doc/classes/TreeItem.xml | 9 +++++++++ scene/gui/tree.cpp | 1 + 2 files changed, 10 insertions(+) diff --git a/doc/classes/TreeItem.xml b/doc/classes/TreeItem.xml index 01d690589bf..a4c976591fc 100644 --- a/doc/classes/TreeItem.xml +++ b/doc/classes/TreeItem.xml @@ -120,6 +120,15 @@ Returns the custom background color of column [code]column[/code]. + + + + + + + Returns the custom color of column [code]column[/code]. + + diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 1b52796dc7d..c9d1295557f 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -827,6 +827,7 @@ void TreeItem::_bind_methods() { ClassDB::bind_method(D_METHOD("set_custom_color", "column", "color"), &TreeItem::set_custom_color); ClassDB::bind_method(D_METHOD("clear_custom_color", "column"), &TreeItem::clear_custom_color); + ClassDB::bind_method(D_METHOD("get_custom_color", "column"), &TreeItem::get_custom_color); ClassDB::bind_method(D_METHOD("set_custom_bg_color", "column", "color", "just_outline"), &TreeItem::set_custom_bg_color, DEFVAL(false)); ClassDB::bind_method(D_METHOD("clear_custom_bg_color", "column"), &TreeItem::clear_custom_bg_color);