From e2bebfbd4ca04682724b9e768db35865bb445216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 13 Jan 2020 08:55:16 +0100 Subject: Use MOUSE_FILTER_PASS for all containers (but PanelContainer) Containers are meant to forward mouse input to their the Controls they contain. PanelContainer has a visible Panel stylebox, so it still defaults to STOP. Fixes #34933. --- scene/gui/container.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene/gui/container.cpp') diff --git a/scene/gui/container.cpp b/scene/gui/container.cpp index b07fec90c2..b411f563b8 100644 --- a/scene/gui/container.cpp +++ b/scene/gui/container.cpp @@ -197,4 +197,6 @@ void Container::_bind_methods() { Container::Container() { pending_sort = false; + // All containers should let mouse events pass by default. + set_mouse_filter(MOUSE_FILTER_PASS); } -- cgit v1.2.3