Animation is working segfault on unload

This commit is contained in:
Clément Le Bihan
2021-06-02 15:58:37 +02:00
parent 45a566f197
commit f245fe727b
7 changed files with 48 additions and 14 deletions
@@ -15,7 +15,7 @@ namespace BBM
{
private:
//! @brief To get the animation data
RAY::ModelAnimations &_modelAnimation;
RAY::ModelAnimations _modelAnimation;
//! @brief The index of the
int _currentAnimIndex;
public:
@@ -32,7 +32,7 @@ namespace BBM
size_t getCurrentAnimFrameCounter() const;
//! @brief get the current
RAY::ModelAnimation getCurrentModelAnim() const;
RAY::ModelAnimation getCurrentModelAnim();
//! @brief set the anim frame counter
void setCurrentAnimFrameCounter(size_t animFrameCounter);
@@ -44,7 +44,7 @@ namespace BBM
void incCurrentAnimFrameCounter();
//! @brief ctor entity and the path of the animation file
explicit AnimationsComponent(WAL::Entity &entity, RAY::ModelAnimations &modelAnimation, int animIndex);
explicit AnimationsComponent(WAL::Entity &entity, RAY::ModelAnimations modelAnimation, int animIndex);
//! @brief copy ctor
AnimationsComponent(const AnimationsComponent &) = default;
//! @brief dtor