diff --git a/src/core/display/Container.js b/src/core/display/Container.js index 26d9e84..d6b9c52 100644 --- a/src/core/display/Container.js +++ b/src/core/display/Container.js @@ -131,6 +131,9 @@ child.parent = this; + // ensure a transform will be recalculated.. + this.transform._parentID = -1; + this.children.push(child); // TODO - lets either do all callbacks or all events.. not both! @@ -366,7 +369,7 @@ return; } - this.transform = this.parent.transform.updateChildTransform(this.transform); + this.transform.updateTransform(this.parent.transform); //TODO: check render flags, how to process stuff here this.worldAlpha = this.alpha * this.parent.worldAlpha;