Skip to content

Commit

Permalink
Fix bug of samepleEvents in animation-state.ts (#4909)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayceLai authored and jerrywwl committed Jul 18, 2019
1 parent 2c36681 commit 117b76b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cocos/animation/animation-state.ts
Expand Up @@ -652,6 +652,7 @@ export class AnimationState extends Playable {
}

private _sampleEvents (wrapInfo: WrappedInfo) {
const length = this._clip.eventGroups.length;
let direction = wrapInfo.direction;
let eventIndex = this._clip.getEventGroupIndexAtRatio(wrapInfo.ratio);
if (eventIndex < 0) {
Expand Down

0 comments on commit 117b76b

Please sign in to comment.