Tween.Restart adds Tween back to the active list for the TweenManager to properly process and replay

This commit is contained in:
Travis O'Neal 2018-03-30 11:24:36 -04:00
parent 8c996ca339
commit edb81c9096

View file

@ -409,8 +409,16 @@ var Tween = new Class({
*/ */
restart: function () restart: function ()
{ {
this.stop(); if (this.state === TWEEN_CONST.REMOVED)
this.play(); {
this.seek(0);
this.parent.makeActive(this);
}
else
{
this.stop();
this.play();
}
}, },
/** /**