diff --git a/src/core/display/TransformStatic.js b/src/core/display/TransformStatic.js index ee0a843..1e8d0c6 100644 --- a/src/core/display/TransformStatic.js +++ b/src/core/display/TransformStatic.js @@ -112,8 +112,6 @@ */ updateTransform(parentTransform) { - const pt = parentTransform.worldTransform; - const wt = this.worldTransform; const lt = this.localTransform; if (this._localID !== this._currentLocalID) @@ -135,6 +133,9 @@ if (this._parentID !== parentTransform._worldID) { // concat the parent matrix with the objects transform. + const pt = parentTransform.worldTransform; + const wt = this.worldTransform; + wt.a = (lt.a * pt.a) + (lt.b * pt.c); wt.b = (lt.a * pt.b) + (lt.b * pt.d); wt.c = (lt.c * pt.a) + (lt.d * pt.c);