Describe the changes below:
The tween animation was getting stuck when calling restart on it after being added.

It now checks to see if this.state === TWEEN_CONST.PENDING_ADD in the tween restart function

If true, sets this.seek(0) and this.parent.makeActive(this)

This fixes the issue that makes the tween stuck when restarting the new tween directly after adding a the new tween.

Updates to package.json and package-lock.json were undone from the last pull request.
This commit is contained in:
zacharysarette 2018-05-23 21:01:07 +09:00
parent 6af861b813
commit de759b69a5

2
dist/phaser.js vendored
View file

@ -19045,7 +19045,7 @@ var Tween = new Class({
*/
restart: function ()
{
if (this.state === TWEEN_CONST.REMOVED)
if (this.state === TWEEN_CONST.REMOVED || this.state === TWEEN_CONST.PENDING_ADD)
{
this.seek(0);
this.parent.makeActive(this);