From 60eaa6812272e9a654d2e863e9c22c05ba189618 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 30 May 2011 08:24:34 +0000 Subject: [PATCH] From Terry Welsh, "I was having a small culling problem with osgText... new TextBase.cpp that fixes it." --- src/osgText/TextBase.cpp | 1 + 1 file changed, 1 insertion(+) 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); }