mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Revert "Emit signal when animation ends by seek"
This reverts commitbf1cc116e1. This needs more discussion to avoid breaking some users' expectations. See #38086 for arguments. (cherry picked from commit69f36cea8c)
This commit is contained in:
@@ -950,13 +950,13 @@ void AnimationPlayer::_animation_process(float p_delta) {
|
||||
play(queued.front()->get());
|
||||
String new_name = playback.assigned;
|
||||
queued.pop_front();
|
||||
if (end_notify || playback.seeked)
|
||||
if (end_notify)
|
||||
emit_signal(SceneStringNames::get_singleton()->animation_changed, old, new_name);
|
||||
} else {
|
||||
//stop();
|
||||
playing = false;
|
||||
_set_process(false);
|
||||
if (end_notify || playback.seeked)
|
||||
if (end_notify)
|
||||
emit_signal(SceneStringNames::get_singleton()->animation_finished, playback.assigned);
|
||||
}
|
||||
end_reached = false;
|
||||
|
||||
Reference in New Issue
Block a user