fix for tangent curve flipping only doing 2d angle tests.

This commit is contained in:
Campbell Barton 2013-04-14 11:56:11 +00:00
parent 1e839ec8bc
commit e369c2375b

@ -1900,7 +1900,7 @@ static void bevel_list_flip_tangents(BevList *bl)
nr = bl->nr;
while (nr--) {
if (RAD2DEGF(angle_v2v2(bevp0->tan, bevp1->tan)) > 90.0f)
if (angle_normalized_v3v3(bevp0->tan, bevp1->tan) > DEG2RADF(90.0f))
negate_v3(bevp1->tan);
bevp0 = bevp1;