From b8514ba097e82f0a7abcd50680b9a85dd9a2fc17 Mon Sep 17 00:00:00 2001 From: luzhuang <364439895@qq.com> Date: Tue, 31 Oct 2023 11:42:32 +0800 Subject: [PATCH] fix: no autoplay when set animatorController after enable (#1843) * fix: no autoplay when set animatorController after enable --- packages/core/src/animation/Animator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/animation/Animator.ts b/packages/core/src/animation/Animator.ts index 4e1952804c..abd9df3c80 100644 --- a/packages/core/src/animation/Animator.ts +++ b/packages/core/src/animation/Animator.ts @@ -32,7 +32,7 @@ export class Animator extends Component { speed: number = 1.0; /** @internal */ - _playFrameCount: number; + _playFrameCount: number = -1; /** @internal */ _onUpdateIndex: number = -1;