Fixes linux and windows building failure.

This commit is contained in:
James Chen 2013-12-19 20:32:22 +08:00
parent 755d29b0e1
commit 3dc052db4f
1 changed files with 3 additions and 1 deletions

View File

@ -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