From a1d62760972b93cefe39de7f1fcf7d9b47e38368 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Wed, 31 Jul 2024 12:15:15 +0200 Subject: [PATCH] Fix process_input is not enabled in active substate --- hsm/limbo_hsm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hsm/limbo_hsm.cpp b/hsm/limbo_hsm.cpp index 53289e3..cba7608 100644 --- a/hsm/limbo_hsm.cpp +++ b/hsm/limbo_hsm.cpp @@ -52,11 +52,13 @@ void LimboHSM::change_active_state(LimboState *p_state) { if (active_state) { active_state->_exit(); + active_state->set_process_input(false); previous_active = active_state; } active_state = p_state; active_state->_enter(); + active_state->set_process_input(true); emit_signal(LimboStringNames::get_singleton()->active_state_changed, active_state, previous_active); }