Skip to content

Commit

Permalink
WrapMode::LoopReverse should always reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
nunu-e64 authored and Fumiya Amano committed Apr 3, 2018
1 parent 57ccc01 commit 0c6fe91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ float AnimateClip::computeElapse() const
if (wrapMode == AnimationClip::WrapMode::Reverse // reverse mode
|| (wrapMode == AnimationClip::WrapMode::PingPong && !oddRound) // pingpong mode and it is the second round
|| (wrapMode == AnimationClip::WrapMode::PingPongReverse && oddRound) // pingpongreverse mode and it is the first round
|| (wrapMode == AnimationClip::WrapMode::LoopReverse && oddRound)
|| (wrapMode == AnimationClip::WrapMode::LoopReverse)
)
elapsed = duration - elapsed;

Expand Down

0 comments on commit 0c6fe91

Please sign in to comment.