Error in curve update, uninitialized var use
authorCampbell Barton <ideasman42@gmail.com>
Mon, 25 Jul 2016 05:12:46 +0000 (15:12 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 25 Jul 2016 05:12:46 +0000 (15:12 +1000)
extern/curve_fit_nd/intern/curve_fit_cubic_refit.c

index 756c093b193528cca3329f2017b075597debdc4d..c701f28f131427fd7183b4f1c34b2121c2077ff6 100644 (file)
@@ -1184,7 +1184,7 @@ int curve_fit_cubic_to_points_refit_db(
                        copy_vnvn(knots[0].tan[0], tan_prev, dims);
                        copy_vnvn(knots[0].tan[1], tan_prev, dims);
                        knots[0].handles[0] = len_prev / 3;
-                       knots[0].handles[1] = len_next / 3;
+                       knots[0].handles[1] = len_prev / 3;
 
                        for (uint i_curr = 1, i_next = 2; i_next < knots_len; i_curr = i_next++) {
                                struct Knot *k = &knots[i_curr];