Fix reset effect in clip bin

CCBUG: 361822
parent acc81d62
......@@ -917,7 +917,10 @@ void EffectStackView2::slotResetEffect(int ix)
m_clipref->initEffect(m_effectMetaInfo.monitor->profileInfo(), dom);
emit updateEffect(m_clipref, -1, old, dom, ix,true);
} else if (m_status == MASTER_CLIP) {
//TODO
m_masterclipref->initEffect(m_effectMetaInfo.monitor->profileInfo(), dom);
m_masterclipref->updateEffect(m_effectMetaInfo.monitor->profileInfo(), dom, ix);
slotMasterClipItemSelected(m_masterclipref, m_effectMetaInfo.monitor);
m_effectMetaInfo.monitor->refreshMonitorIfActive();
}
}
......
......@@ -616,6 +616,17 @@ Mlt::Profile *ClipController::profile()
return m_binController->profile();
}
void ClipController::initEffect(const ProfileInfo &pInfo, QDomElement &xml)
{
QMutexLocker lock(&m_effectMutex);
Mlt::Service service = m_masterProducer->parent();
ItemInfo info;
info.cropStart = GenTime();
info.cropDuration = getPlaytime();
EffectsList eff = effectList();
EffectsController::initEffect(info, pInfo, eff, property(QStringLiteral("kdenlive:proxy")), xml);
}
void ClipController::addEffect(const ProfileInfo &pInfo, QDomElement &xml)
{
QMutexLocker lock(&m_effectMutex);
......
......@@ -167,6 +167,7 @@ public:
QPoint zone() const;
bool hasLimitedDuration() const;
Mlt::Properties &properties();
void initEffect(const ProfileInfo &pInfo, QDomElement &xml);
void addEffect(const ProfileInfo &pInfo, QDomElement &xml);
void removeEffect(int effectIndex, bool delayRefresh = false);
EffectsList effectList();
......
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