mirror of https://github.com/axmolengine/axmol.git
commit
8283ab9435
|
@ -1378,7 +1378,7 @@ const Matrix& Node::getNodeToParentTransform() const
|
||||||
}
|
}
|
||||||
if(_rotationX) {
|
if(_rotationX) {
|
||||||
Matrix rotX;
|
Matrix rotX;
|
||||||
Matrix::createRotationY(CC_DEGREES_TO_RADIANS(_rotationX), &rotX);
|
Matrix::createRotationX(CC_DEGREES_TO_RADIANS(_rotationX), &rotX);
|
||||||
_transform = _transform * rotX;
|
_transform = _transform * rotX;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue