fix if last frame has tween effect, armature may display wrong

This commit is contained in:
2youyou2 2013-11-19 11:44:17 +08:00
parent f308f2f95a
commit d5478f1ca2
1 changed files with 1 additions and 1 deletions

View File

@ -475,7 +475,7 @@ float Tween::updateFrameData(float currentPercent)
* If frame tween easing equal to TWEEN_EASING_MAX, then it will not do tween.
*/
TweenType tweenType = (_frameTweenEasing != Linear) ? _frameTweenEasing : _tweenEasing;
if (tweenType != TWEEN_EASING_MAX && tweenType != Linear)
if (tweenType != TWEEN_EASING_MAX && tweenType != Linear && !_passLastFrame)
{
currentPercent = TweenFunction::tweenTo(0, 1, currentPercent, 1, tweenType);
}