Make EditorProperty and its child EditorProperties behave more like sibling nodes

Let `EditorProperty::gui_input()` no longer handle mouse events that
occur in the child EditorProperty rect.
This commit is contained in:
风青山 2025-02-26 17:46:40 +08:00
parent d0437d5052
commit 62aa4a6f9e
No known key found for this signature in database
GPG key ID: 056264D70ECB0FD5
3 changed files with 4 additions and 5 deletions

View file

@ -430,7 +430,6 @@ void EditorPropertyArray::update_property() {
if (!container) {
container = memnew(PanelContainer);
container->set_mouse_filter(MOUSE_FILTER_STOP);
add_child(container);
set_bottom_editor(container);
@ -1208,7 +1207,6 @@ void EditorPropertyDictionary::update_property() {
if (!container) {
container = memnew(PanelContainer);
container->set_mouse_filter(MOUSE_FILTER_STOP);
add_child(container);
set_bottom_editor(container);