Fix "minimum twist" curve flipping issue

Correct the code to actually do what the comment says.
This fixes an issue where the curve would flip 180 degrees under certain
conditions.
This commit is contained in:
2019-09-13 17:15:26 +02:00
parent 6b0d1ef7e1
commit 23a4149778

View File

@@ -2370,7 +2370,7 @@ static void make_bevel_list_3D_minimum_twist(BevList *bl)
nr = bl->nr;
while (nr--) {
if (nr + 4 > bl->nr) { /* first time and second time, otherwise first point adjusts last */
if (nr + 3 > bl->nr) { /* first time and second time, otherwise first point adjusts last */
vec_to_quat(bevp1->quat, bevp1->dir, 5, 1);
}
else {