From ec6d258db0973060aa8c7d72f481f4890209b9f6 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Thu, 6 Jul 2023 23:07:21 -0500 Subject: [PATCH] Fix property hint class name type string restriction and replace mode (cherry picked from commit 58a65591f50b412432298fc1758db33817a1757c) --- editor/editor_properties.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 04a019a4079..875351cacdf 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -621,7 +621,7 @@ void EditorPropertyClassName::update_property() { } void EditorPropertyClassName::_property_selected() { - dialog->popup_create(true); + dialog->popup_create(true, true, get_edited_property_value(), get_edited_property()); } void EditorPropertyClassName::_dialog_created() { @@ -3622,7 +3622,7 @@ EditorProperty *EditorInspectorDefaultPlugin::get_editor_for_property(Object *p_ return editor; } else if (p_hint == PROPERTY_HINT_TYPE_STRING) { EditorPropertyClassName *editor = memnew(EditorPropertyClassName); - editor->setup("Object", p_hint_text); + editor->setup(p_hint_text, p_hint_text); return editor; } else if (p_hint == PROPERTY_HINT_LOCALE_ID) { EditorPropertyLocale *editor = memnew(EditorPropertyLocale);