Make restart in NodeStateMachine / NodeTransition optional

This commit is contained in:
Silc Renew
2023-01-31 21:17:29 +09:00
parent 5bcf016f11
commit 4525181c2d
6 changed files with 53 additions and 10 deletions

View File

@ -188,6 +188,7 @@ private:
};
HashMap<StringName, State> states;
bool allow_transition_to_self = false;
struct Transition {
StringName from;
@ -254,6 +255,9 @@ public:
void remove_transition_by_index(const int p_transition);
void remove_transition(const StringName &p_from, const StringName &p_to);
void set_allow_transition_to_self(bool p_enable);
bool is_allow_transition_to_self() const;
bool can_edit_node(const StringName &p_name) const;
AnimationNodeStateMachine *get_prev_state_machine() const;