Commit 6731c21 1 parent e6a170e commit 6731c21 Copy full SHA for 6731c21
File tree 1 file changed +2
-2
lines changed
packages/core/src/animation
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -695,7 +695,7 @@ export class Animator extends Component {
695
695
destPlayData . update ( destCostTime ) ;
696
696
697
697
let crossWeight = Math . abs ( destPlayData . frameTime ) / transitionDuration ;
698
- ( crossWeight >= 1.0 || transitionDuration === 0 ) && ( crossWeight = 1.0 ) ;
698
+ ( crossWeight >= 1.0 - MathUtil . zeroTolerance || transitionDuration === 0 ) && ( crossWeight = 1.0 ) ;
699
699
700
700
const crossFadeFinished = crossWeight === 1.0 ;
701
701
@@ -819,7 +819,7 @@ export class Animator extends Component {
819
819
destPlayData . update ( destCostTime ) ;
820
820
821
821
let crossWeight = Math . abs ( destPlayData . frameTime ) / transitionDuration ;
822
- ( crossWeight >= 1.0 || transitionDuration === 0 ) && ( crossWeight = 1.0 ) ;
822
+ ( crossWeight >= 1.0 - MathUtil . zeroTolerance || transitionDuration === 0 ) && ( crossWeight = 1.0 ) ;
823
823
824
824
const crossFadeFinished = crossWeight === 1.0 ;
825
825
You can’t perform that action at this time.
0 commit comments