mirror of
https://github.com/photonstorm/phaser
synced 2024-11-11 07:34:43 +00:00
Merge pull request #910 from TatumCreative/dev
Fix null returns for play()
This commit is contained in:
commit
ba29d5bd4b
2 changed files with 6 additions and 2 deletions
|
@ -227,6 +227,7 @@ Phaser.AnimationManager.prototype = {
|
|||
this.currentAnim.paused = false;
|
||||
return this.currentAnim.play(frameRate, loop, killOnComplete);
|
||||
}
|
||||
return this.currentAnim;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -993,8 +993,11 @@ Phaser.Physics.P2.Body.prototype = {
|
|||
*/
|
||||
removeShape: function (shape) {
|
||||
|
||||
return this.data.removeShape(shape);
|
||||
var result = this.data.removeShape(shape);
|
||||
|
||||
this.shapeChanged();
|
||||
|
||||
return result;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue