Fix process_input is not enabled in active substate

This commit is contained in:
Serhii Snitsaruk 2024-07-31 12:15:15 +02:00
parent 01ae6a46de
commit 997f9572e2
1 changed files with 2 additions and 0 deletions

View File

@ -51,11 +51,13 @@ void LimboHSM::_change_state(LimboState *p_state) {
if (active_state) { if (active_state) {
active_state->_exit(); active_state->_exit();
active_state->set_process_input(false);
previous_active = active_state; previous_active = active_state;
} }
active_state = p_state; active_state = p_state;
active_state->_enter(); active_state->_enter();
active_state->set_process_input(true);
emit_signal(LimboStringNames::get_singleton()->active_state_changed, active_state, previous_active); emit_signal(LimboStringNames::get_singleton()->active_state_changed, active_state, previous_active);
} }