Fix T79341: Crash evaluating curve

This commit is contained in:
Campbell Barton 2020-07-28 17:41:04 +10:00
parent ed19781a2a
commit a2a29327d9
Notes: blender-bot 2023-02-14 02:30:11 +01:00
Referenced by issue #79341, Crash when evaluating curve (uninitialized pointer use)
1 changed files with 2 additions and 1 deletions

View File

@ -3112,8 +3112,9 @@ void BKE_curve_bevelList_make(Object *ob, ListBase *nurbs, bool for_render)
if (bl->poly > 0) {
BevPoint *bevp;
min = 300000.0;
bevp = bl->bevpoints;
bevp1 = bl->bevpoints;
min = bevp1->vec[0];
nr = bl->nr;
while (nr--) {
if (min > bevp->vec[0]) {