mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
Merge pull request #2357 from FilamentGames/dev
Patch for destructive getLocalBounds in PIXI.DisplayObjectContainer
This commit is contained in:
commit
6ba5515995
1 changed files with 5 additions and 0 deletions
|
@ -384,6 +384,11 @@ PIXI.DisplayObjectContainer.prototype.getLocalBounds = function()
|
|||
var bounds = this.getBounds();
|
||||
|
||||
this.worldTransform = matrixCache;
|
||||
|
||||
for(var i=0,j=this.children.length; i<j; i++)
|
||||
{
|
||||
this.children[i].updateTransform();
|
||||
}
|
||||
|
||||
return bounds;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue