Skip to content

Commit

Permalink
Merge pull request #79139 from aaronfranke/prop-hint-cl-na-type-str-r…
Browse files Browse the repository at this point in the history
…estr-repl

Fix property hint class name type string restriction and replace mode
  • Loading branch information
akien-mga committed Jul 10, 2023
2 parents bbb1100 + 58a6559 commit 7e36223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/editor_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7e36223

Please sign in to comment.