Tweens don't update if paused.

This commit is contained in:
photonstorm 2017-08-09 17:23:23 +01:00
parent 2ddafdd0b5
commit 80fc2e9820

View file

@ -3,6 +3,11 @@ var UpdateTweenData = require('./UpdateTweenData');
var Update = function (timestamp, delta)
{
if (this.state === TWEEN_CONST.PAUSED)
{
return;
}
if (this.useFrames)
{
delta = 1;