Browse Source

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
Rémi Verschelde 1 year ago
parent
commit
8eb34cb78b
2 changed files with 2 additions and 0 deletions
  1. 1 0
      editor/editor_properties.cpp
  2. 1 0
      editor/editor_properties_array_dict.cpp

+ 1 - 0
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);
 

+ 1 - 0
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);