Fix T75592: Correctly calculate length of curve verts
Previous commit to fix T75405 needed a small change to increase the length of the front section of the curve when only the front is built.
This commit is contained in:
parent
68ba6378b5
commit
71a333f56e
Notes:
blender-bot
2023-02-14 09:17:57 +01:00
Referenced by issue #75592, curves displayed incorrectly Referenced by issue #75405, Crash when increasing text object bevel depth
|
@ -1877,7 +1877,9 @@ void BKE_curve_bevel_make(Object *ob, ListBase *disp)
|
|||
}
|
||||
/* Don't duplicate the last back vertex. */
|
||||
angle = (cu->ext1 == 0.0f && (cu->flag & CU_BACK)) ? dangle : 0;
|
||||
int front_len = (cu->ext1 == 0.0f) ? cu->bevresol + 1 : cu->bevresol + 2;
|
||||
int front_len = (cu->ext1 == 0.0f && ((cu->flag & CU_BACK) || !(cu->flag & CU_FRONT))) ?
|
||||
cu->bevresol + 1 :
|
||||
cu->bevresol + 2;
|
||||
for (a = 0; a < front_len; a++) {
|
||||
fp[0] = 0.0;
|
||||
fp[1] = (float)(cosf(angle) * (cu->ext2));
|
||||
|
|
Loading…
Reference in New Issue