else
localTransform.idt();
if (rotation != 0) localTransform.rotate(rotation);
if (scaleX != 1 || scaleY != 1) localTransform.scale(scaleX, scaleY);
if (originX != 0 || originY != 0) localTransform.translate(-originX, -originY);
localTransform.trn(x, y);
// Find the first parent that transforms.
Group parentGroup = parent;
while (parentGroup != null) {
if (parentGroup.transform) break;