diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index a8a28f8..6d23345 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -381,6 +381,7 @@ if(!this.parent) { this.parent = _tempDisplayObjectParent; + this.parent.transform._worldID++; this.updateTransform(); this.parent = null; } diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index a8a28f8..6d23345 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -381,6 +381,7 @@ if(!this.parent) { this.parent = _tempDisplayObjectParent; + this.parent.transform._worldID++; this.updateTransform(); this.parent = null; } diff --git a/src/extras/cacheAsBitmap.js b/src/extras/cacheAsBitmap.js index d90c8c6..a4d74f5 100644 --- a/src/extras/cacheAsBitmap.js +++ b/src/extras/cacheAsBitmap.js @@ -168,10 +168,12 @@ // need to set // var m = _tempMatrix; - m.tx = -bounds.x; m.ty = -bounds.y; + // reset + this.transform.worldTransform.identity(); + // set all properties to there original so we can render to a texture this.renderWebGL = this._cacheData.originalRenderWebGL;