blob: ff92923abe7234c1cf50765ce9c93565c4ffd215 [file] [log] [blame]
#include "KeyFrameOpacity.hpp"
#include "../../ActorNode.hpp"
using namespace nima;
void KeyFrameOpacity::setValue(ActorComponent* component, float value, float mix)
{
ActorNode* node = reinterpret_cast<ActorNode*>(component);
node->opacity(node->opacity() * (1.0f - mix) + value * mix);
}