Remove strict check

This commit is contained in:
Richard Davey 2018-08-01 16:04:08 +01:00
parent f540d03346
commit 46552c8f2e

View file

@ -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;