MorphGeometry fixes
This commit is contained in:
committed by
Robert Osfield
parent
40ccf503e4
commit
ce28b2e43e
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user