Fixed auto rotate bug.

This commit is contained in:
Robert Osfield
2006-07-25 13:52:10 +00:00
parent ee8e74c4a9
commit d728d8335e

View File

@@ -783,11 +783,6 @@ void Text::computePositions(unsigned int contextID) const
matrix.postMult(osg::Matrix::rotate(_rotation));
}
if (_autoRotateToScreen)
{
matrix.postMult(rotate_matrix);
}
if (_characterSizeMode!=OBJECT_COORDS)
{
@@ -845,7 +840,12 @@ void Text::computePositions(unsigned int contextID) const
}
}
if (_autoRotateToScreen)
{
matrix.postMult(rotate_matrix);
}
matrix.postMult(osg::Matrix::translate(_position));
}
else if (!_rotation.zeroRotation())