summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorajreckof <66184050+ajreckof@users.noreply.github.com>2023-08-25 02:11:12 +0200
committerajreckof <66184050+ajreckof@users.noreply.github.com>2023-08-25 14:00:02 +0200
commitf2758d8591f18602680eb6eee3334c100269c7fe (patch)
tree22b834f8da5e4876d9e56322675b414e84d243e4 /editor
parent6758a7f8c07d1f4c8ec4f052ded6d26402967ebe (diff)
downloadredot-engine-f2758d8591f18602680eb6eee3334c100269c7fe.tar.gz
Fix paste value emptying an array on some right click location
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_properties_array_dict.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp
index 3a84fcb785..fc880f7506 100644
--- a/editor/editor_properties_array_dict.cpp
+++ b/editor/editor_properties_array_dict.cpp
@@ -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) {
@@ -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);