From 3dc052db4f436d4d8031104942c1f2c7127b3661 Mon Sep 17 00:00:00 2001 From: James Chen Date: Thu, 19 Dec 2013 20:32:22 +0800 Subject: [PATCH] Fixes linux and windows building failure. --- cocos/2d/CCNode.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cocos/2d/CCNode.cpp b/cocos/2d/CCNode.cpp index 52be3d4155..18922971c1 100644 --- a/cocos/2d/CCNode.cpp +++ b/cocos/2d/CCNode.cpp @@ -1205,10 +1205,12 @@ const kmMat4& Node::getNodeToParentTransform() const // Build Transform Matrix // Adjusted transform calculation for rotational skew - _transform = { cy * _scaleX, sy * _scaleX, 0, 0, + kmScalar mat[] = { cy * _scaleX, sy * _scaleX, 0, 0, -sx * _scaleY, cx * _scaleY, 0, 0, 0, 0, 1, 0, x, y, 0, 1 }; + + kmMat4Fill(&_transform, mat); // XXX: Try to inline skew // If skew is needed, apply skew and then anchor point