From a8173439efbbaba77352236d0d8d455c9afc897a Mon Sep 17 00:00:00 2001 From: ajreckof Date: Mon, 26 Feb 2024 06:53:40 +0100 Subject: [PATCH] Fix paste Value can empty a dictionary depending on right-click location --- editor/editor_properties.cpp | 1 + editor/editor_properties_array_dict.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 46a648e1b96..0517abac2be 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -3341,6 +3341,7 @@ void EditorPropertyResource::update_property() { sub_inspector->set_use_folding(is_using_folding()); sub_inspector_vbox = memnew(VBoxContainer); + sub_inspector_vbox->set_mouse_filter(MOUSE_FILTER_STOP); add_child(sub_inspector_vbox); set_bottom_editor(sub_inspector_vbox); diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp index 0bc412f60f5..2d11c2e2d12 100644 --- a/editor/editor_properties_array_dict.cpp +++ b/editor/editor_properties_array_dict.cpp @@ -863,6 +863,7 @@ void EditorPropertyDictionary::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);