blob: 0e7ffd88cfbb60378936fd1a1f9ad4b8730a7115 [file]
#include "rive/importers/linear_animation_importer.hpp"
#include "rive/animation/keyed_object.hpp"
#include "rive/animation/linear_animation.hpp"
#include "rive/artboard.hpp"
using namespace rive;
LinearAnimationImporter::LinearAnimationImporter(LinearAnimation* animation)
: m_Animation(animation)
{
// Its keyed properties are imported next; a callback among them sets this
// again (see KeyedProperty::import).
m_Animation->hasKeyedCallbacks(false);
}
void LinearAnimationImporter::addKeyedObject(
std::unique_ptr<KeyedObject> object)
{
m_Animation->addKeyedObject(std::move(object));
}