-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make restart in NodeStateMachine / NodeTransition optional #72450
Conversation
5d2c239
to
86c1d96
Compare
86c1d96
to
8d96fd3
Compare
Renamed to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that the code for AnimationNodeTransition::_process
is effectively doing set_parameter("current_state", get_parameter("transition_request"))
every frame.
However, Tokage explained that in this case, Current state is "A". Transition_request is also "A". so it is a no-op during a transition to self.
LGTM
8d96fd3
to
4525181
Compare
Just for the sake of performance, I changed it to skip the A=A process. |
Okay, it's a bit easier to read now. thanks |
Thanks! |
Follow up #71418.
Recognizing that many users are spamming
travel()
requests, this feature will be made optional.