From f8d511a3277f1ce29e12589c5eceacdadee5cee0 Mon Sep 17 00:00:00 2001 From: kobewi Date: Fri, 1 Apr 2022 20:30:23 +0200 Subject: [PATCH] Cleanup metadata usage --- editor/visual_script_property_selector.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/editor/visual_script_property_selector.cpp b/editor/visual_script_property_selector.cpp index 07929e5..c8549dd 100644 --- a/editor/visual_script_property_selector.cpp +++ b/editor/visual_script_property_selector.cpp @@ -109,11 +109,7 @@ void VisualScriptPropertySelector::_confirmed() { } void VisualScriptPropertySelector::_item_selected() { - if (results_tree->get_selected()->has_meta("description")) { - help_bit->set_text(results_tree->get_selected()->get_meta("description")); - } else { - help_bit->set_text("No description available"); - } + help_bit->set_text(results_tree->get_selected()->get_meta("description", "No description available")); } void VisualScriptPropertySelector::_hide_requested() {