mirror of https://github.com/axmolengine/axmol.git
Fixes linux and windows building failure.
This commit is contained in:
parent
755d29b0e1
commit
3dc052db4f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue