Fix T44186: Bezier Bevel facto mapping broken when 'start' was set to 'Resolution' and 'end' was not.

Trivial, we need totla_length in that case too.

Safe to be backported to 2.74.
This commit is contained in:
Bastien Montagne 2015-03-30 10:22:12 +02:00
parent 59740a6c98
commit 1b327aa219
Notes: blender-bot 2023-02-14 09:19:04 +01:00
Referenced by issue #44186, Bezier Bevel factor mapping problem
1 changed files with 2 additions and 3 deletions

View File

@ -1435,9 +1435,8 @@ static void calc_bevfac_mapping(Curve *cu, BevList *bl, Nurb *nu,
return;
}
if (ELEM(cu->bevfac1_mapping,
CU_BEVFAC_MAP_SEGMENT,
CU_BEVFAC_MAP_SPLINE))
if (ELEM(cu->bevfac1_mapping, CU_BEVFAC_MAP_SEGMENT, CU_BEVFAC_MAP_SPLINE) ||
ELEM(cu->bevfac2_mapping, CU_BEVFAC_MAP_SEGMENT, CU_BEVFAC_MAP_SPLINE))
{
for (i = 0; i < SEGMENTSU(nu); i++) {
total_length += bl->seglen[i];