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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user