Added setDataVariance(DYNAMIC) to text label as it's being updated dynamically

This commit is contained in:
Robert Osfield 2009-02-03 12:47:41 +00:00
parent c5733fef14
commit abb63e3199

View File

@ -657,6 +657,7 @@ osg::Node* createSubloadWall(osg::BoundingBox& bb)
// create the text label.
osgText::Text* text = new osgText::Text;
text->setDataVariance(osg::Object::DYNAMIC);
text->setFont("fonts/arial.ttf");
text->setPosition(center);
text->setCharacterSize(height*0.03f);