From 2f016c521fdcbb89f58a6326be32b2e7ac52e8c5 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Thu, 15 Sep 2022 20:49:14 -0300 Subject: Fix empty text in the add button when editing nodes with items --- editor/editor_inspector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 9e7314bf50..08c731cba5 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -3038,7 +3038,7 @@ void EditorInspector::update_tree() { bool movable = true; bool numbered = false; bool foldable = use_folding; - String add_button_text; + String add_button_text = TTR("Add Element"); String swap_method; for (int i = (p.type == Variant::NIL ? 1 : 2); i < class_name_components.size(); i++) { if (class_name_components[i].begins_with("page_size") && class_name_components[i].get_slice_count("=") == 2) { -- cgit v1.2.3