Refactored the way that margin is applied to the text buounding box to prevent growth of the bounding box each time Text::setPosition() is called.

This commit is contained in:
Robert Osfield
2018-04-06 20:05:26 +01:00
parent ba4624c437
commit 6bfca1582e
4 changed files with 139 additions and 148 deletions

View File

@@ -337,6 +337,7 @@ protected:
osg::Vec3 _offset;
osg::Vec3 _normal;
osg::BoundingBox _textBB;
osg::BoundingBox _textBBWithMargin;
mutable osg::Matrix _matrix;