summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-26 12:11:19 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-26 12:11:19 +0100
commit8eb34cb78bc2df3715cfdfcf4562bd36ddf91f7f (patch)
tree288fe369e66ddff942299f1f2beb1e33d3264293
parent2fb99c187e133e4fc8c684883316bb0f614af010 (diff)
parenta8173439efbbaba77352236d0d8d455c9afc897a (diff)
downloadredot-engine-8eb34cb78bc2df3715cfdfcf4562bd36ddf91f7f.tar.gz
Merge pull request #88849 from ajreckof/Fix-paste-Value-can-empty-a-dictionary-depending-on-right-click-location
Fix paste Value can empty a dictionary depending on right-click location
-rw-r--r--editor/editor_properties.cpp1
-rw-r--r--editor/editor_properties_array_dict.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 46a648e1b9..0517abac2b 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 0bc412f60f..2d11c2e2d1 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);