Merge pull request #3923 from Edwin222/comment

Fix a bug that tween delay doesn't applied after one loop of timeline(issue #3841)
This commit is contained in:
Richard Davey 2019-04-08 13:00:10 +01:00 committed by GitHub
commit e9c34c73a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -736,15 +736,16 @@ var Tween = new Class({
tweenData.state = TWEEN_CONST.PLAYING_FORWARD;
}
else if (tweenData.delay > 0)
{
tweenData.elapsed = tweenData.delay;
tweenData.state = TWEEN_CONST.DELAY;
}
else
{
tweenData.state = TWEEN_CONST.PENDING_RENDER;
}
if (tweenData.delay > 0)
{
tweenData.elapsed = tweenData.delay;
tweenData.state = TWEEN_CONST.DELAY;
}
}
},