From ae19a49a1eef2a17449d6560e5fc2258db57e233 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 31 Mar 2025 08:01:29 +0200 Subject: [PATCH] Make drop_mouse_on_gui_input_disabled GLOBAL_GET cached. --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index b37787ff9..29724ff0c 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2914,7 +2914,7 @@ void Viewport::set_disable_input(bool p_disable) { if (p_disable == disable_input) { return; } - if (p_disable && GLOBAL_GET("gui/common/drop_mouse_on_gui_input_disabled")) { + if (p_disable && GLOBAL_GET_CACHED(bool, "gui/common/drop_mouse_on_gui_input_disabled")) { _drop_mouse_focus(); _drop_mouse_over(); _gui_cancel_tooltip();