Added explicit setting of updateText to have DYNAMIC data variance.
This commit is contained in:
parent
e8a65e4cff
commit
1d78ea2983
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user