forked from bartvdbraak/blender
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:
parent
59740a6c98
commit
1b327aa219
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user