From 4088fa5d0319e6b026ca09633e16065d6ae7d2f6 Mon Sep 17 00:00:00 2001 From: Popov72 Date: Wed, 30 Aug 2023 17:26:45 +0200 Subject: [PATCH] Fix bug when calculating endFrame value --- packages/dev/core/src/Animations/animationGroup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dev/core/src/Animations/animationGroup.ts b/packages/dev/core/src/Animations/animationGroup.ts index f744d759419..59928ac0721 100644 --- a/packages/dev/core/src/Animations/animationGroup.ts +++ b/packages/dev/core/src/Animations/animationGroup.ts @@ -380,7 +380,7 @@ export class AnimationGroup implements IDisposable { weight = weight ?? animationGroups[0].weight; let beginFrame = Number.MAX_VALUE; - let endFrame = Number.MIN_VALUE; + let endFrame = -Number.MAX_VALUE; if (normalize) { for (const animationGroup of animationGroups) {