Fix property hint class name type string restriction and replace mode
(cherry picked from commit 58a65591f5
)
This commit is contained in:
parent
a79160ebd2
commit
ec6d258db0
|
@ -621,7 +621,7 @@ void EditorPropertyClassName::update_property() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorPropertyClassName::_property_selected() {
|
void EditorPropertyClassName::_property_selected() {
|
||||||
dialog->popup_create(true);
|
dialog->popup_create(true, true, get_edited_property_value(), get_edited_property());
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorPropertyClassName::_dialog_created() {
|
void EditorPropertyClassName::_dialog_created() {
|
||||||
|
@ -3622,7 +3622,7 @@ EditorProperty *EditorInspectorDefaultPlugin::get_editor_for_property(Object *p_
|
||||||
return editor;
|
return editor;
|
||||||
} else if (p_hint == PROPERTY_HINT_TYPE_STRING) {
|
} else if (p_hint == PROPERTY_HINT_TYPE_STRING) {
|
||||||
EditorPropertyClassName *editor = memnew(EditorPropertyClassName);
|
EditorPropertyClassName *editor = memnew(EditorPropertyClassName);
|
||||||
editor->setup("Object", p_hint_text);
|
editor->setup(p_hint_text, p_hint_text);
|
||||||
return editor;
|
return editor;
|
||||||
} else if (p_hint == PROPERTY_HINT_LOCALE_ID) {
|
} else if (p_hint == PROPERTY_HINT_LOCALE_ID) {
|
||||||
EditorPropertyLocale *editor = memnew(EditorPropertyLocale);
|
EditorPropertyLocale *editor = memnew(EditorPropertyLocale);
|
||||||
|
|
Loading…
Reference in New Issue