Skip to content

Commit

Permalink
Fix paste value emptying an array on some right click location
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreckof committed Aug 25, 2023
1 parent 6758a7f commit f2758d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/editor_properties_array_dict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ void EditorPropertyArray::update_property() {
array_type_name = vformat("%s[%s]", array_type_name, type_name);
}

if (array.get_type() == Variant::NIL) {
if (!array.is_array()) {
edit->set_text(vformat(TTR("(Nil) %s"), array_type_name));
edit->set_pressed(false);
if (container) {
Expand Down Expand Up @@ -286,6 +286,7 @@ void EditorPropertyArray::update_property() {
if (!container) {
container = memnew(MarginContainer);
container->set_theme_type_variation("MarginContainer4px");
container->set_mouse_filter(MOUSE_FILTER_STOP);
add_child(container);
set_bottom_editor(container);

Expand Down

0 comments on commit f2758d8

Please sign in to comment.