Skip to content

Commit 46552c8

Browse files
committed
Remove strict check
1 parent f540d03 commit 46552c8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/gameobjects/container/ContainerWebGLRenderer.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ var ContainerWebGLRenderer = function (renderer, container, interpolationPercent
3131

3232
var transformMatrix = container.localTransform;
3333

34-
if (parentMatrix === undefined)
35-
{
36-
transformMatrix.applyITRS(container.x, container.y, container.rotation, container.scaleX, container.scaleY);
37-
}
38-
else
34+
if (parentMatrix)
3935
{
4036
transformMatrix.loadIdentity();
4137
transformMatrix.multiply(parentMatrix);
4238
transformMatrix.translate(container.x, container.y);
4339
transformMatrix.rotate(container.rotation);
4440
transformMatrix.scale(container.scaleX, container.scaleY);
4541
}
42+
else
43+
{
44+
transformMatrix.applyITRS(container.x, container.y, container.rotation, container.scaleX, container.scaleY);
45+
}
4646

4747
var alpha = container._alpha;
4848
var scrollFactorX = container.scrollFactorX;

0 commit comments

Comments
 (0)