blob: e06a02698c700b6291bdf9fb779d1fa17dfce0b7 [file] [log] [blame]
#include "rive/bones/skinnable.hpp"
#include "rive/shapes/points_path.hpp"
#include "rive/shapes/mesh.hpp"
using namespace rive;
Skinnable* Skinnable::from(Component* component) {
switch (component->coreType()) {
case PointsPath::typeKey: return component->as<PointsPath>();
case Mesh::typeKey: return component->as<Mesh>();
}
return nullptr;
}
void Skinnable::skin(Skin* skin) { m_Skin = skin; }