From Paul Martz, changed Vec3 to Vec3d to ensure that the lazy evaluation of computeBound work properly.

This commit is contained in:
Robert Osfield 2005-12-08 20:32:06 +00:00
parent a4ea759ce5
commit 3f2c419db6

View File

@ -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);