From e1b3874fd2fb6f1530fd5a981b8f0774e55c2a07 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 10 Oct 2009 09:35:16 +0000 Subject: [PATCH] From Cedric Pinson, "Here an update of osganimationtimeline example, the callback did not follow the callback api, i updated to fix this, then the callback are called correctly." --- examples/osganimationtimeline/osganimationtimeline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/osganimationtimeline/osganimationtimeline.cpp b/examples/osganimationtimeline/osganimationtimeline.cpp index 58592b8da..611e6df00 100644 --- a/examples/osganimationtimeline/osganimationtimeline.cpp +++ b/examples/osganimationtimeline/osganimationtimeline.cpp @@ -34,7 +34,7 @@ struct NoseBegin : public osgAnimation::Action::Callback { - virtual void operator()(osgAnimation::Action* action) + virtual void operator()(osgAnimation::Action* action, osgAnimation::ActionVisitor* nv) { std::cout << "sacrebleu, it scratches my nose, let me scratch it" << std::endl; std::cout << "process NoseBegin call back " << action->getName() << std::endl << std::endl; @@ -43,7 +43,7 @@ struct NoseBegin : public osgAnimation::Action::Callback struct NoseEnd : public osgAnimation::Action::Callback { - virtual void operator()(osgAnimation::Action* action) + virtual void operator()(osgAnimation::Action* action, osgAnimation::ActionVisitor* nv) { std::cout << "shhhrt shrrrrt shhhhhhrrrrt, haaa it's better"<< std::endl; std::cout << "process NoseEnd call back " << action->getName() << std::endl << std::endl;