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

Fix weird behavior of teleporting to self-state when reset_on_teleport is false in StateMachine #71840

Merged
merged 1 commit into from
Jan 22, 2023

Conversation

TokageItLab
Copy link
Member

@TokageItLab TokageItLab commented Jan 22, 2023

Follow up #71418.

A restart by travel() can be thought of as a teleport to itself, so if reset_on_teleport is false, it is correct to delete path and do nothing.

@TokageItLab TokageItLab added this to the 4.0 milestone Jan 22, 2023
@TokageItLab TokageItLab requested a review from a team as a code owner January 22, 2023 07:19
@akien-mga akien-mga changed the title Fix weird behavior of teleporting to self-state when reset_on_telepote is false in StateMachine Fix weird behavior of teleporting to self-state when reset_on_teleport is false in StateMachine Jan 22, 2023
@akien-mga akien-mga merged commit 285e6ed into godotengine:master Jan 22, 2023
@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.

2 participants