Added explicit setting of updateText to have DYNAMIC data variance.

This commit is contained in:
Robert Osfield 2007-06-21 16:14:54 +00:00
parent e8a65e4cff
commit 1d78ea2983

View File

@ -418,6 +418,7 @@ int main( int argc, char **argv )
osgViewer::Viewer viewer;
osg::ref_ptr<osgText::Text> updateText = new osgText::Text;
updateText->setDataVariance(osg::Object::DYNAMIC);
// add the handler for doing the picking
viewer.addEventHandler(new PickHandler(&viewer,updateText.get()));