keyframeview: correct time break bug

This commit is contained in:
itsmattkc
2022-01-02 12:35:41 -08:00
parent 9d5ec1e60f
commit 363a8cc7a9
2 changed files with 12 additions and 1 deletions
+6 -1
View File
@@ -331,7 +331,7 @@ void KeyframeView::drawForeground(QPainter *painter, const QRectF &rect)
DrawKeyframe(painter, key, track, key_rect);
next_key = SceneToTime(key_x + 1);
next_key = GetUnadjustedKeyframeTime(key, SceneToTime(key_x + 1));
last_type = key->type();
}
}
@@ -417,6 +417,11 @@ void KeyframeView::DeselectKeyframe(NodeKeyframe *key)
}
}
rational KeyframeView::GetUnadjustedKeyframeTime(NodeKeyframe *key, const rational &time)
{
return GetAdjustedTime(GetTimeTarget(), key->parent(), time, true);
}
rational KeyframeView::GetAdjustedKeyframeTime(NodeKeyframe *key)
{
return GetAdjustedTime(key->parent(), GetTimeTarget(), key->time(), false);