From d728d8335e7cbfa1b45acd9e7b4b42b02516d7cb Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 25 Jul 2006 13:52:10 +0000 Subject: [PATCH] Fixed auto rotate bug. --- src/osgText/Text.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index 9fc8e53af..5b8bd909f 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -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())