#include "animation/linear_animation.hpp"
#include "animation/keyed_object.hpp"
+#include "artboard.hpp"
+#include "importers/artboard_importer.hpp"
+#include "importers/import_stack.hpp"
using namespace rive;
}
return StatusCode::Ok;
}
+
StatusCode LinearAnimation::onAddedClean(CoreContext* context)
{
StatusCode code;
{
object->apply(artboard, time, mix);
}
+}
+
+StatusCode LinearAnimation::import(ImportStack& importStack)
+{
+ auto artboardImporter =
+ importStack.latest<ArtboardImporter>(ArtboardBase::typeKey);
+ if (artboardImporter == nullptr)
+ {
+ return StatusCode::MissingObject;
+ }
+ artboardImporter->addAnimation(this);
+ return Super::import(importStack);
}
\ No newline at end of file