blob: e0498081f87834487ae4cb51981b66933791539f [file]
#include <sstream>
#include <iomanip>
#include <array>
#include "rive/viewmodel/viewmodel_instance_trigger.hpp"
#include "rive/component_dirt.hpp"
using namespace rive;
void ViewModelInstanceTrigger::propertyValueChanged()
{
addDirt(ComponentDirt::Bindings);
#ifdef WITH_RIVE_TOOLS
if (m_changedCallback != nullptr)
{
m_changedCallback(this, propertyValue());
}
#endif
onValueChanged();
}
void ViewModelInstanceTrigger::applyValue(DataValueInteger* dataValue)
{
propertyValue(dataValue->value());
}