blob: ce08cbbac42731fc4a04ab9fb425fa8ec3c2ff9b [file] [log] [blame]
#include "KeyFrameLength.hpp"
#include "../../ActorBone.hpp"
using namespace nima;
void KeyFrameLength::setValue(ActorComponent* component, float value, float mix)
{
// Hard assumption this is a bone.
ActorBone* bone = reinterpret_cast<ActorBone*>(component);
bone->length(bone->length() * (1.0f - mix) + value * mix);
}