diff --git a/src/osgText/TextBase.cpp b/src/osgText/TextBase.cpp index 183979168..8b12808e9 100644 --- a/src/osgText/TextBase.cpp +++ b/src/osgText/TextBase.cpp @@ -297,6 +297,7 @@ osg::BoundingBox TextBase::computeBound() const { osg::Matrix matrix; matrix.makeTranslate(_position); + matrix.preMultRotate(_rotation); bbox.expandBy(osg::Vec3(_textBB.xMin(),_textBB.yMin(),_textBB.zMin())*matrix); bbox.expandBy(osg::Vec3(_textBB.xMax(),_textBB.yMax(),_textBB.zMax())*matrix); }