Build fixes for when the implict ref_ptr<> cast is not enabled

This commit is contained in:
Robert Osfield
2008-12-16 20:49:12 +00:00
parent 60fc821764
commit ffe77a785a
2 changed files with 4 additions and 3 deletions

View File

@@ -177,7 +177,8 @@ int main (int argc, char* argv[])
}
osg::ref_ptr<osgAnimation::TimelineAnimationManager> tl = new osgAnimation::TimelineAnimationManager(*animationManager);
root->setUpdateCallback(tl);
root->setUpdateCallback(tl.get());
ExampleTimelineUsage* callback = new ExampleTimelineUsage(tl.get());
root->setEventCallback(callback);
root->getUpdateCallback()->addNestedCallback(callback);