Skip to content

Commit db7c417

Browse files
committed
Reset worldTransforms of children after computing local bounds.
1 parent ba5981a commit db7c417

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/pixi/display/DisplayObjectContainer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,11 @@ PIXI.DisplayObjectContainer.prototype.getLocalBounds = function()
384384
var bounds = this.getBounds();
385385

386386
this.worldTransform = matrixCache;
387+
388+
for(var i=0,j=this.children.length; i<j; i++)
389+
{
390+
this.children[i].updateTransform();
391+
}
387392

388393
return bounds;
389394
};

0 commit comments

Comments
 (0)