Fix T40694: Curve path messed up.

Error in rB4b4bb410e04e, BKE_nurb_makeCurve() requires its coord_array to be zero'ed,
hence we need calloc here.
This commit is contained in:
Bastien Montagne 2014-06-18 23:45:16 +02:00
parent 79634b4688
commit 4bf8b04025
Notes: blender-bot 2023-02-14 10:28:22 +01:00
Referenced by issue #40694, Curve path messed up
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ static void curve_to_displist(Curve *cu, ListBase *nubase, ListBase *dispbase,
len = (resolu * SEGMENTSU(nu));
dl = MEM_callocN(sizeof(DispList), "makeDispListsurf");
dl->verts = MEM_mallocN(len * sizeof(float[3]), "dlverts");
dl->verts = MEM_callocN(len * sizeof(float[3]), "dlverts");
BLI_addtail(dispbase, dl);
dl->parts = 1;