Commit c97b7fdf authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Effectstack: don't display keyframes that are outside of clip

parent 9a8de2e4
......@@ -294,6 +294,7 @@ void KeyframeView::paintEvent(QPaintEvent *event)
*/
for (const auto &keyframe : *m_model.get()) {
int pos = keyframe.first.frames(pCore->getCurrentFps()) - offset;
if (pos < 0) continue;
if (pos == m_currentKeyframe || pos == m_hoverKeyframe) {
p.setBrush(m_colSelected);
} else {
......
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