Fix T63599: fix the zero ease hack for the B-Bone end matrix.

Negate the second derivative, because it's effectively stepping back.
This commit is contained in:
Alexander Gavrilov 2019-04-14 20:30:33 +03:00
parent 6a59e12364
commit f73b3178f7
Notes: blender-bot 2023-02-14 06:23:08 +01:00
Referenced by issue #63599, Rigify glitches
1 changed files with 1 additions and 0 deletions

View File

@ -862,6 +862,7 @@ int BKE_pchan_bbone_spline_compute(BBoneSplineParameters *param, const bool for_
make_bbone_spline_matrix(param, scalemats, cur, axis, roll, scalefac, result_array[a].mat);
}
negate_v3(bezt_deriv2[1]);
ease_handle_axis(bezt_deriv1[2], bezt_deriv2[1], axis);
make_bbone_spline_matrix(param, scalemats, bezt_controls[3], axis, roll2, param->scaleOut, result_array[param->segments].mat);
}