Skip to content
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

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

TokageItLab
Copy link
Member

@TokageItLab TokageItLab commented Jan 31, 2023

Follow up #71418.

Recognizing that many users are spamming travel() requests, this feature will be made optional.

image

@TokageItLab
Copy link
Member Author

Renamed to allow_transition_to_self

Copy link
Contributor

@lyuma lyuma left a 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

@TokageItLab
Copy link
Member Author

Just for the sake of performance, I changed it to skip the A=A process.

@lyuma
Copy link
Contributor

lyuma commented Jan 31, 2023

Okay, it's a bit easier to read now. thanks

@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants