MorphGeometry fixes

This commit is contained in:
Julien Valentin
2016-06-25 18:15:57 +01:00
committed by Robert Osfield
parent 40ccf503e4
commit ce28b2e43e
3 changed files with 74 additions and 4 deletions

View File

@@ -107,7 +107,9 @@ int main (int argc, char* argv[])
osg::Geode* geode = new osg::Geode;
geode->addDrawable(morph);
geode->addUpdateCallback(new osgAnimation::UpdateMorph("MorphNodeCallback"));
osgAnimation::UpdateMorph* morphupdate=new osgAnimation::UpdateMorph("MorphNodeCallback");
morphupdate->addTarget("MorphNodeCallback");
geode->addUpdateCallback(morphupdate);
scene->addChild(geode);
viewer.addEventHandler(new osgViewer::StatsHandler());