Commit: 1b2aa3a080de55939918b68bb87bf9b5d0c7e618
Author: dilithjay
Date: Sun Dec 19 16:36:04 2021 +0530
Branches: soc-2021-curves
https://developer.blender.org/rB1b2aa3a080de55939918b68bb87bf9b5d0c7e618
Clamped t to not let curves go to infinity
===================================================================
M source/blender/editors/curve/editcurve_pen.c
===================================================================
diff --git a/source/blender/editors/curve/editcurve_pen.c
b/source/blender/editors/curve/editcurve_pen.c
index 71ed62e46f5..0ca8f4c2712 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -788,6 +788,11 @@ static void move_segment(MoveSegmentData *seg_data, const
wmEvent *event, ViewCo
BezTriple *bezt2 = BKE_nurb_bezt_get_next(nu, bezt1);
const float t = seg_data->t;
+
+ if (min_ff(t, 1.0f - t) < 0.1f) {
+ return;
+ }
+
const float t_sq = t * t;
const float t_cu = t_sq * t;
const float one_minus_t = 1 - t;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs