Fix seeking on transition effectstack

parent 9fe63f04
......@@ -293,6 +293,9 @@ void AssetPanel::showKeyframes(bool enable)
ObjectId AssetPanel::effectStackOwner()
{
if (m_transitionWidget->isVisible()) {
return m_transitionWidget->stackOwner();
}
if (!m_effectStackWidget->isVisible()) {
return ObjectId(ObjectType::NoItem, -1);
}
......
......@@ -805,7 +805,7 @@ Fun TrackModel::requestCompositionResize_lambda(int compoId, int in, int out)
out = in + old_out - old_in;
}
auto update_snaps = [old_in, old_out, this](int new_in, int new_out) {
auto update_snaps = [compoId, old_in, old_out, this](int new_in, int new_out) {
if (auto ptr = m_parent.lock()) {
ptr->m_snaps->removePoint(old_in);
ptr->m_snaps->removePoint(old_out);
......@@ -813,6 +813,7 @@ Fun TrackModel::requestCompositionResize_lambda(int compoId, int in, int out)
ptr->m_snaps->addPoint(new_out);
ptr->checkRefresh(old_in, old_out);
ptr->checkRefresh(new_in, new_out);
ptr->adjustAssetRange(compoId, new_in, new_out);
} else {
qDebug() << "Error : Composition resize failed because parent timeline is not available anymore";
Q_ASSERT(false);
......
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