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:
@@ -282,9 +282,6 @@ protected:
|
||||
|
||||
virtual void computePositionsImplementation();
|
||||
|
||||
void computeBackdropBoundingBox();
|
||||
void computeBoundingBoxMargin();
|
||||
|
||||
void computeColorGradients();
|
||||
void computeColorGradientsOverall();
|
||||
void computeColorGradientsPerCharacter();
|
||||
|
||||
@@ -337,6 +337,7 @@ protected:
|
||||
osg::Vec3 _offset;
|
||||
osg::Vec3 _normal;
|
||||
osg::BoundingBox _textBB;
|
||||
osg::BoundingBox _textBBWithMargin;
|
||||
|
||||
mutable osg::Matrix _matrix;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user