Merge pull request #176 from limbonaut/hsm-input-fix

LimboHSM: Fix process_input is not enabled in active substate
This commit is contained in:
Serhii Snitsaruk 2024-07-31 13:40:50 +02:00 committed by GitHub
commit 64df43c7c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}