[ASDisplayNode convertRect:fromNode:] hotfix

`_calculateTransformFromReferenceToTarget()` was being called incorrectly! 👍
This commit is contained in:
Alec Larson 2014-11-13 16:43:45 -08:00
parent 6c9e499875
commit 73073215c6

View File

@ -579,7 +579,7 @@ static inline CATransform3D _calculateTransformFromReferenceToTarget(ASDisplayNo
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));