Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SVG transform fix
  • Loading branch information
djphoenix committed May 13, 2015
1 parent 31040fd commit ebbd7f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pxSVG/pxSVGRenderPath.m
Expand Up @@ -127,8 +127,8 @@ - (CALayer *)makeLayerWithNode:(pxSVGObject*)node
}
l.frame = self.bounds;
CATransform3D tr = node.transform;
tr = CATransform3DConcat(CATransform3DMakeTranslation(-self.bounds.size.width/2, self.bounds.size.height/2, 0), tr);
tr = CATransform3DConcat(tr, CATransform3DMakeTranslation( self.bounds.size.width/2, -self.bounds.size.height/2, 0));
tr = CATransform3DConcat(CATransform3DMakeTranslation( self.bounds.size.width/2, self.bounds.size.height/2, 0), tr);
tr = CATransform3DConcat(tr, CATransform3DMakeTranslation(-self.bounds.size.width/2, -self.bounds.size.height/2, 0));
l.transform = tr;
l.opacity = node.opacity;
if ([node respondsToSelector:@selector(subnodes)]) {
Expand Down

0 comments on commit ebbd7f0

Please sign in to comment.