Make restart in NodeStateMachine / NodeTransition optional
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user