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
This commit is contained in:
Rémi Verschelde 2024-02-26 12:11:19 +01:00
commit 8eb34cb78b
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 2 additions and 0 deletions

View File

@ -3341,6 +3341,7 @@ void EditorPropertyResource::update_property() {
sub_inspector->set_use_folding(is_using_folding()); sub_inspector->set_use_folding(is_using_folding());
sub_inspector_vbox = memnew(VBoxContainer); sub_inspector_vbox = memnew(VBoxContainer);
sub_inspector_vbox->set_mouse_filter(MOUSE_FILTER_STOP);
add_child(sub_inspector_vbox); add_child(sub_inspector_vbox);
set_bottom_editor(sub_inspector_vbox); set_bottom_editor(sub_inspector_vbox);

View File

@ -863,6 +863,7 @@ void EditorPropertyDictionary::update_property() {
if (!container) { if (!container) {
container = memnew(MarginContainer); container = memnew(MarginContainer);
container->set_theme_type_variation("MarginContainer4px"); container->set_theme_type_variation("MarginContainer4px");
container->set_mouse_filter(MOUSE_FILTER_STOP);
add_child(container); add_child(container);
set_bottom_editor(container); set_bottom_editor(container);