implemented bezier interpolation into parameters inputs

This commit is contained in:
itsmattkc
2019-12-28 23:21:07 +11:00
parent 1d3d52db9b
commit 994d8be961
9 changed files with 157 additions and 11 deletions
+2 -1
View File
@@ -236,7 +236,8 @@ void CurveView::SetItemYFromKeyframeValue(NodeKeyframe *key, KeyframeViewItem *i
QPointF CurveView::ScalePoint(const QPointF &point)
{
return QPointF(point.x() * scale_, point.y() * y_scale_);
// Flips Y coordinate because curves are drawn bottom to top
return QPointF(point.x() * scale_, - point.y() * y_scale_);
}
void CurveView::KeyframeValueChanged()