From 46552c8f2e84c2e602767d4d2d05228d00f37b9e Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Wed, 1 Aug 2018 16:04:08 +0100 Subject: [PATCH] Remove strict check --- src/gameobjects/container/ContainerWebGLRenderer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gameobjects/container/ContainerWebGLRenderer.js b/src/gameobjects/container/ContainerWebGLRenderer.js index 33e057d90..95ef2b5d7 100644 --- a/src/gameobjects/container/ContainerWebGLRenderer.js +++ b/src/gameobjects/container/ContainerWebGLRenderer.js @@ -31,11 +31,7 @@ var ContainerWebGLRenderer = function (renderer, container, interpolationPercent var transformMatrix = container.localTransform; - if (parentMatrix === undefined) - { - transformMatrix.applyITRS(container.x, container.y, container.rotation, container.scaleX, container.scaleY); - } - else + if (parentMatrix) { transformMatrix.loadIdentity(); transformMatrix.multiply(parentMatrix); @@ -43,6 +39,10 @@ var ContainerWebGLRenderer = function (renderer, container, interpolationPercent transformMatrix.rotate(container.rotation); transformMatrix.scale(container.scaleX, container.scaleY); } + else + { + transformMatrix.applyITRS(container.x, container.y, container.rotation, container.scaleX, container.scaleY); + } var alpha = container._alpha; var scrollFactorX = container.scrollFactorX;