Fix freeze on add keyframe. Fixes #37

BUG: 404277
parent 3cd2f9e0
......@@ -1008,10 +1008,9 @@ void KeyframeModel::sendModification()
if (auto ptr = m_model.lock()) {
Q_ASSERT(m_index.isValid());
QString name = ptr->data(m_index, AssetParameterModel::NameRole).toString();
QString data;
if (m_paramType == ParamType::KeyframeParam || m_paramType == ParamType::AnimatedRect || m_paramType == ParamType::Roto_spline) {
data = getAnimProperty();
ptr->setParameter(name, data, false);
m_lastData = getAnimProperty();
ptr->setParameter(name, m_lastData, false);
} else {
Q_ASSERT(false); // Not implemented, TODO
}
......
......@@ -181,7 +181,7 @@ void AssetParameterModel::setParameter(const QString &name, const QString &value
Q_ASSERT(m_asset->is_valid());
QLocale locale;
locale.setNumberOptions(QLocale::OmitGroupSeparator);
qDebug() << "// PROCESSING PARAM CHANGE: " << name;
qDebug() << "// PROCESSING PARAM CHANGE: " << name << ", UPDATE: "<<update;
bool conversionSuccess;
double doubleValue = locale.toDouble(value, &conversionSuccess);
if (conversionSuccess) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment