blob: b52e804dcb0f96756afa4553fcd2549ba319948d [file]
#include "animation/blend_state.hpp"
using namespace rive;
BlendState::~BlendState()
{
for (auto anim : m_Animations)
{
delete anim;
}
}
void BlendState::addAnimation(BlendAnimation* animation)
{
// Assert it's not already contained.
assert(std::find(m_Animations.begin(), m_Animations.end(), animation) ==
m_Animations.end());
m_Animations.push_back(animation);
}