Fix simplekeyframe effects (eg. blur) allowing keyframe one frame after end of clip after resize

Fix corners effect not editable if applied to clip with cropped start
parent f1105425
......@@ -548,7 +548,7 @@ void KeyframeEdit::checkVisibleParam()
void KeyframeEdit::slotUpdateRange(int inPoint, int outPoint)
{
m_min = inPoint;
m_max = outPoint;
m_max = outPoint - 1;
}
void KeyframeEdit::rowClicked(int newRow, int, int oldRow, int)
......
......@@ -103,7 +103,7 @@ void CornersWidget::slotUpdateItem()
//m_item->setPolygon(QPolygonF() << points.at(0) << points.at(1) << points.at(2) << points.at(3));
//m_monitor->setUpEffectGeometry(QPolygonF() << points.at(0) << points.at(1) << points.at(2) << points.at(3));
m_monitor->setUpEffectGeometry(QRect(), points);
bool enable = getPos(keyframe->row()) == m_pos || keyframe_list->rowCount() == 1;
bool enable = getPos(keyframe->row()) - m_min == m_pos || keyframe_list->rowCount() == 1;
m_monitor->setEffectKeyframe(enable);
}
......
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