mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
pause animation on last frame (#4381)
This commit is contained in:
committed by
Weiliang Wang
parent
594f151f16
commit
7444084e8c
@@ -505,7 +505,6 @@ export class AnimationState extends Playable {
|
||||
}
|
||||
|
||||
protected onStop () {
|
||||
this.setTime(0);
|
||||
if (!this.isPaused) {
|
||||
cc.director.getAnimationManager().removeAnimation(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user