From Michael Platings, I've just added a few simple accessors I found necessary
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* -*-c++-*-
|
||||
* Copyright (C) 2008 Cedric Pinson <mornifle@plopbyte.net>
|
||||
* Copyright (C) 2008 Cedric Pinson <cedric.pinson@plopbyte.net>
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
#include <osgAnimation/AnimationManagerBase>
|
||||
#include <osgAnimation/LinkVisitor>
|
||||
#include <algorithm>
|
||||
|
||||
using namespace osgAnimation;
|
||||
|
||||
@@ -92,6 +93,16 @@ void AnimationManagerBase::registerAnimation (Animation* animation)
|
||||
buildTargetReference();
|
||||
}
|
||||
|
||||
void AnimationManagerBase::unregisterAnimation (Animation* animation)
|
||||
{
|
||||
AnimationList::iterator it = std::find(_animations.begin(), _animations.end(), animation);
|
||||
if (it != _animations.end())
|
||||
{
|
||||
_animations.erase(it);
|
||||
}
|
||||
buildTargetReference();
|
||||
}
|
||||
|
||||
bool AnimationManagerBase::needToLink() const { return _needToLink; }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user