Merge pull request #23930 from zer0problem/master
AnimatedSprite: Fixed signal animation_finished
This commit is contained in:
commit
aa63b86feb
|
@ -398,11 +398,11 @@ void AnimatedSprite::_notification(int p_what) {
|
||||||
emit_signal(SceneStringNames::get_singleton()->animation_finished);
|
emit_signal(SceneStringNames::get_singleton()->animation_finished);
|
||||||
frame = 0;
|
frame = 0;
|
||||||
} else {
|
} else {
|
||||||
if (!is_over) {
|
|
||||||
emit_signal(SceneStringNames::get_singleton()->animation_finished);
|
|
||||||
is_over = true;
|
|
||||||
}
|
|
||||||
frame = fc - 1;
|
frame = fc - 1;
|
||||||
|
if (!is_over) {
|
||||||
|
is_over = true;
|
||||||
|
emit_signal(SceneStringNames::get_singleton()->animation_finished);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
frame++;
|
frame++;
|
||||||
|
|
Loading…
Reference in New Issue