Changeset View
Changeset View
Standalone View
Standalone View
src/assets/keyframes/model/keyframemodel.cpp
Context not available. | |||||
310 | Q_ASSERT(m_keyframeList.count(pos) > 0); | 310 | Q_ASSERT(m_keyframeList.count(pos) > 0); | ||
---|---|---|---|---|---|
311 | KeyframeType type = m_keyframeList[pos].first; | 311 | KeyframeType type = m_keyframeList[pos].first; | ||
312 | QVariant oldValue = m_keyframeList[pos].second; | 312 | QVariant oldValue = m_keyframeList[pos].second; | ||
313 | // Chek if keyframe is different | 313 | // Check if keyframe is different | ||
314 | if (m_paramType == ParamType::KeyframeParam) { | 314 | if (m_paramType == ParamType::KeyframeParam) { | ||
315 | if (qFuzzyCompare(oldValue.toDouble(), value.toDouble())) return true; | 315 | if (qFuzzyCompare(oldValue.toDouble(), value.toDouble())) return true; | ||
316 | } | 316 | } | ||
Context not available. | |||||
399 | { | 399 | { | ||
400 | QWriteLocker locker(&m_lock); | 400 | QWriteLocker locker(&m_lock); | ||
401 | return [this, pos, type, value, notify]() { | 401 | return [this, pos, type, value, notify]() { | ||
402 | qDebug() << "udpate lambda" << pos.frames(pCore->getCurrentFps()) << value << notify; | 402 | qDebug() << "update lambda" << pos.frames(pCore->getCurrentFps()) << value << notify; | ||
403 | Q_ASSERT(m_keyframeList.count(pos) > 0); | 403 | Q_ASSERT(m_keyframeList.count(pos) > 0); | ||
404 | int row = static_cast<int>(std::distance(m_keyframeList.begin(), m_keyframeList.find(pos))); | 404 | int row = static_cast<int>(std::distance(m_keyframeList.begin(), m_keyframeList.find(pos))); | ||
405 | m_keyframeList[pos].first = type; | 405 | m_keyframeList[pos].first = type; | ||
Context not available. |