-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Split pause() from AnimationPlayer's stop() #71218
Split pause() from AnimationPlayer's stop() #71218
Conversation
I believe void Tween::_stop_internal(bool p_reset) {
running = false;
dead = false;
if (p_reset) {
started = false;
total_time = 0;
}
}
void Tween::stop() {
_stop_internal(true);
}
void Tween::pause() {
_stop_internal(false);
} BTW, I think there is no reason not to set dead to false in pause. |
363d151
to
d69f091
Compare
Tween's |
Docs could benefit from "See also [method the_other_method]." |
|
d69f091
to
da93968
Compare
Ok I added it as a second commit. I also fixed inconsistent naming of a private method. |
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 agree with this more than #71208. Without deciding whether or not to implement pause() we cannot go forward. The time has come.
Not really. The issues were mostly about I also didn't want to change the behavior of |
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.
LGTM. I guess adding this to the project converter may be hard due to a very ambiguous name?
The conversion would have to handle EDIT: |
Thanks! |
Counter-PR to #71208
This is a minimal change, unlike #56645
stop()
will function exactly the same as it did.stop(false)
is nowpause()
.Everything else stays the same.