From 7444084e8cc88c7f0e07dccfd4830b8d5f5ae198 Mon Sep 17 00:00:00 2001 From: Leslie Leigh Date: Tue, 7 May 2019 14:13:30 +0800 Subject: [PATCH] pause animation on last frame (#4381) --- cocos/animation/animation-state.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/cocos/animation/animation-state.ts b/cocos/animation/animation-state.ts index cbb4f5ec9c..ff02cd385d 100644 --- a/cocos/animation/animation-state.ts +++ b/cocos/animation/animation-state.ts @@ -505,7 +505,6 @@ export class AnimationState extends Playable { } protected onStop () { - this.setTime(0); if (!this.isPaused) { cc.director.getAnimationManager().removeAnimation(this); }