Moved the rotation to before the scale

This commit is contained in:
Robert Osfield
2018-05-21 18:14:18 +01:00
parent 9c6951e4ba
commit eae5f9b958

View File

@@ -497,6 +497,7 @@ bool TextBase::computeMatrix(osg::Matrix& matrix, osg::State* state) const
rotate_matrix.invert(temp_matrix);
matrix.makeTranslate(-_offset);
matrix.postMultRotate(_rotation);
if (_characterSizeMode!=OBJECT_COORDS)
{
@@ -551,8 +552,6 @@ bool TextBase::computeMatrix(osg::Matrix& matrix, osg::State* state) const
}
}
matrix.postMultRotate(_rotation);
if (_autoRotateToScreen)
{
matrix.postMult(rotate_matrix);