From 0f638507a6324c009a5c7239dadc15f336bbfd30 Mon Sep 17 00:00:00 2001 From: Ovnuniarchos Date: Mon, 26 Feb 2024 21:49:45 +0100 Subject: [PATCH] FIXED: Locale fallback selector doesn't appear in project options. --- editor/editor_properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 55cf01ec8e2..c0de0c280c0 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -3099,7 +3099,7 @@ bool EditorInspectorDefaultPlugin::parse_property(Object *p_object, Variant::Typ } else if (p_hint == PROPERTY_HINT_LOCALE_ID) { EditorPropertyLocale *editor = memnew(EditorPropertyLocale); editor->setup(p_hint_text); - return editor; + add_property_editor(p_path, editor); } else if (p_hint == PROPERTY_HINT_DIR || p_hint == PROPERTY_HINT_FILE || p_hint == PROPERTY_HINT_SAVE_FILE || p_hint == PROPERTY_HINT_GLOBAL_DIR || p_hint == PROPERTY_HINT_GLOBAL_FILE) { Vector extensions = p_hint_text.split(","); bool global = p_hint == PROPERTY_HINT_GLOBAL_DIR || p_hint == PROPERTY_HINT_GLOBAL_FILE;