From Fabian Lavignotte, "Here is some various small fixes i have done while playing with

osgAnimation.
 - Animation : removed the _name attribute that is never used.
 - BasicAnimationManager : fix a crash on Windows with the example
osganimationviewer. The _lastUpdate attribute was not initialized when
using copy constructor.
 - CMakeLists.txt : add RigGeometry to the headers list"
This commit is contained in:
Robert Osfield
2009-02-05 15:22:42 +00:00
parent 09dca8e90b
commit 3fdc0b4cfd
4 changed files with 16 additions and 7 deletions

View File

@@ -17,7 +17,20 @@
using namespace osgAnimation;
BasicAnimationManager::~BasicAnimationManager() {}
BasicAnimationManager::BasicAnimationManager()
: _lastUpdate(0.0)
{
}
BasicAnimationManager::BasicAnimationManager(const AnimationManagerBase& b, const osg::CopyOp& copyop)
: AnimationManagerBase(b,copyop)
, _lastUpdate(0.0)
{
}
BasicAnimationManager::~BasicAnimationManager()
{
}
void BasicAnimationManager::stopAll()
{
@@ -31,10 +44,6 @@ void BasicAnimationManager::stopAll()
_animationsPlaying.clear();
}
BasicAnimationManager::BasicAnimationManager()
{
_lastUpdate = 0;
}
void BasicAnimationManager::playAnimation(Animation* pAnimation, int priority, float weight)
{
if (!findAnimation(pAnimation))