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

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