From 3f2c419db631c333e8cdf191d86819157ae06669 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 8 Dec 2005 20:32:06 +0000 Subject: [PATCH] From Paul Martz, changed Vec3 to Vec3d to ensure that the lazy evaluation of computeBound work properly. --- src/osgText/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index 16a0d010b..85533b5b7 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -731,7 +731,7 @@ void Text::computePositions(unsigned int contextID) const osg::Matrix rotate_matrix; if (_autoRotateToScreen) { - osg::Vec3 trans(atc._modelview.getTrans()); + osg::Vec3d trans(atc._modelview.getTrans()); atc._modelview.setTrans(0.0f,0.0f,0.0f); rotate_matrix.invert(atc._modelview);