mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Merge pull request #4087 from TadejZupancic/patch-1
Tween inside Timeline fix
This commit is contained in:
commit
e53a0a1de2
1 changed files with 10 additions and 2 deletions
|
@ -944,8 +944,16 @@ var Tween = new Class({
|
|||
{
|
||||
if (this.state === TWEEN_CONST.PAUSED || this.state === TWEEN_CONST.PENDING_ADD)
|
||||
{
|
||||
this.parent._destroy.push(this);
|
||||
this.parent._toProcess++;
|
||||
if (this.parentIsTimeline)
|
||||
{
|
||||
this.parent.manager._destroy.push(this);
|
||||
this.parent.manager._toProcess++;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.parent._destroy.push(this);
|
||||
this.parent._toProcess++;
|
||||
}
|
||||
}
|
||||
|
||||
this.state = TWEEN_CONST.PENDING_REMOVE;
|
||||
|
|
Loading…
Reference in a new issue