From Paul Martz, changed Vec3 to Vec3d to ensure that the lazy evaluation of computeBound work properly.
This commit is contained in:
parent
a4ea759ce5
commit
3f2c419db6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user