From Cedric Pinson, updates toosgAnimation.

Merged by Robert Osfield, from OpenSceneGraph-osgWidget-dev.
This commit is contained in:
Robert Osfield
2008-11-28 14:34:38 +00:00
parent 37682c6668
commit d3b2d9b074
6 changed files with 112 additions and 27 deletions

View File

@@ -26,6 +26,8 @@ AnimationUpdateCallback::AnimationUpdateCallback(const AnimationUpdateCallback&
int AnimationUpdateCallback::link(osgAnimation::Animation* animation)
{
if (getName().empty())
osg::notify(osg::WARN) << "An update callback has no name, it means it can link only with \"\" named Target, often an error" << std::endl;
int nbLinks = 0;
for (osgAnimation::ChannelList::iterator it = animation->getChannels().begin();
it != animation->getChannels().end();