Skip to content

Commit 00e1a3f

Browse files
committed
Copy paste error in CGAffineTransformFromGLKMatrix4. (Broken deprecated methods)
1 parent 4102211 commit 00e1a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/CCDeprecated.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ @implementation CCNode(Deprecated)
8484
static CGAffineTransform
8585
CGAffineTransformFromGLKMatrix4(GLKMatrix4 m)
8686
{
87-
return CGAffineTransformMake(m.m[0], m.m[0], m.m[0], m.m[0], m.m[0], m.m[0]);
87+
return CGAffineTransformMake(m.m[0], m.m[1], m.m[4], m.m[5], m.m[12], m.m[13]);
8888
}
8989

9090
- (CGAffineTransform)nodeToParentTransform;

0 commit comments

Comments
 (0)