diff options
author | kobewi <kobewi4e@gmail.com> | 2022-04-01 20:30:23 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-05-06 00:27:10 +0200 |
commit | 1dc7bcc83c81b32c3651f3fa869055a0cce22085 (patch) | |
tree | d08d774fa53fc3368b13a23c0c3b5a9cd6327d57 /modules/visual_script | |
parent | 066692b6d081f1577bc0ebcd84da204339218ec6 (diff) |
Cleanup metadata usage
Diffstat (limited to 'modules/visual_script')
-rw-r--r-- | modules/visual_script/editor/visual_script_property_selector.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/visual_script/editor/visual_script_property_selector.cpp b/modules/visual_script/editor/visual_script_property_selector.cpp index 07929e5c0e..c8549ddb53 100644 --- a/modules/visual_script/editor/visual_script_property_selector.cpp +++ b/modules/visual_script/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() { |