Merge pull request #63411 from Calinou/improve-null-object-dictionary-print

Improve null and object printing to avoid confusion with arrays
This commit is contained in:
Rémi Verschelde 2022-08-31 17:37:08 +02:00 committed by GitHub
commit 10aec9057c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 13 additions and 13 deletions

View file

@ -52,7 +52,7 @@ void EditorPropertyNil::update_property() {
EditorPropertyNil::EditorPropertyNil() {
Label *label = memnew(Label);
label->set_text("[null]");
label->set_text("<null>");
add_child(label);
}
@ -1391,7 +1391,7 @@ void EditorPropertyObjectID::update_property() {
edit->set_disabled(false);
edit->set_icon(EditorNode::get_singleton()->get_class_icon(type));
} else {
edit->set_text(TTR("[Empty]"));
edit->set_text(TTR("<empty>"));
edit->set_disabled(true);
edit->set_icon(Ref<Texture2D>());
}