Fix process_input is not enabled in active substate
This commit is contained in:
parent
6aa4e63929
commit
a1d6276097
|
@ -52,11 +52,13 @@ void LimboHSM::change_active_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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue