Fix property hint class name type string restriction and replace mode

This commit is contained in:
Aaron Franke 2023-07-06 23:07:21 -05:00
parent b7c2fd2e9a
commit 58a65591f5
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
1 changed files with 2 additions and 2 deletions

View File

@ -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);