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.

(cherry picked from commit 62aa4a6f9e)
This commit is contained in:
风青山
2025-02-26 17:46:40 +08:00
committed by Rémi Verschelde
parent ba27815166
commit 72ad4a2f36
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);