diff --git a/src/pixi/display/DisplayObjectContainer.js b/src/pixi/display/DisplayObjectContainer.js index 3bee268..bc4fd69 100644 --- a/src/pixi/display/DisplayObjectContainer.js +++ b/src/pixi/display/DisplayObjectContainer.js @@ -296,18 +296,11 @@ * @method getBounds * @return {Rectangle} The rectangular bounding area */ -PIXI.DisplayObjectContainer.prototype.getBounds = function(matrix) +PIXI.DisplayObjectContainer.prototype.getBounds = function() { if(this.children.length === 0)return PIXI.EmptyRectangle; // TODO the bounds have already been calculated this render session so return what we have - if(matrix) - { - var matrixCache = this.worldTransform; - this.worldTransform = matrix; - this.updateTransform(); - this.worldTransform = matrixCache; - } var minX = Infinity; var minY = Infinity; @@ -329,7 +322,7 @@ childVisible = true; - childBounds = this.children[i].getBounds( matrix ); + childBounds = this.children[i].getBounds(); minX = minX < childBounds.x ? minX : childBounds.x; minY = minY < childBounds.y ? minY : childBounds.y;