prevent bezier handles crossing sides

This commit is contained in:
itsmattkc
2019-01-28 23:18:35 +11:00
parent 2eeaf282b2
commit 09033e9cdf
+2 -2
View File
@@ -524,9 +524,9 @@ void GraphView::mouseMoveEvent(QMouseEvent *event) {
}
EffectKeyframe& key = row->field(handle_field)->keyframes[handle_index];
key.pre_handle_x = new_pre_handle_x;
key.pre_handle_x = qMin(0.0, new_pre_handle_x);
key.pre_handle_y = new_pre_handle_y;
key.post_handle_x = new_post_handle_x;
key.post_handle_x = qMax(0.0, new_post_handle_x);
key.post_handle_y = new_post_handle_y;
moved_keys = true;