Skip to content

Commit

Permalink
Merge pull request #176 from limbonaut/hsm-input-fix
Browse files Browse the repository at this point in the history
LimboHSM: Fix process_input is not enabled in active substate
  • Loading branch information
limbonaut authored Jul 31, 2024
2 parents d7daa02 + a1d6276 commit 64df43c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hsm/limbo_hsm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 64df43c

Please sign in to comment.