Skip to content

Commit

Permalink
[ASDisplayNode convertRect:fromNode:] hotfix
Browse files Browse the repository at this point in the history
`_calculateTransformFromReferenceToTarget()` was being called incorrectly! 👍
  • Loading branch information
aleclarson committed Nov 14, 2014
1 parent 6c9e499 commit 7307321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AsyncDisplayKit/ASDisplayNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ - (CGRect)convertRect:(CGRect)rect fromNode:(ASDisplayNode *)node
node = node ? node : _getRootNode(self);

// Calculate transform to map points between coordinate spaces
CATransform3D nodeTransform = _calculateTransformFromReferenceToTarget(self, node);
CATransform3D nodeTransform = _calculateTransformFromReferenceToTarget(node, self);
CGAffineTransform flattenedTransform = CATransform3DGetAffineTransform(nodeTransform);
ASDisplayNodeAssertTrue(CATransform3DIsAffine(nodeTransform));

Expand Down

0 comments on commit 7307321

Please sign in to comment.