Set the DataVariance of updating text to DYNAMIC
This commit is contained in:
parent
c71341d0b9
commit
953899d0e2
@ -193,6 +193,7 @@ osg::Node* createHUD(osgText::Text* updateText)
|
||||
updateText->setColor(osg::Vec4(1.0f,1.0f,0.0f,1.0f));
|
||||
updateText->setText("");
|
||||
updateText->setPosition(position);
|
||||
updateText->setDataVariance(osg::Object::DYNAMIC);
|
||||
|
||||
position += delta;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user