Fix T78883: New bezier curve points to uninitialized memory

This commit is contained in:
Campbell Barton 2020-07-14 15:53:56 +10:00
parent 5338b36fcc
commit 93e14e5935
Notes: blender-bot 2024-03-22 15:57:27 +01:00
Referenced by issue #78883, Bezier curve points created with Ctrl+Rightclick have broken Weight and Radius
1 changed files with 1 additions and 0 deletions

View File

@ -5498,6 +5498,7 @@ static int ed_editcurve_addvert(Curve *cu,
if (nu) {
nurb_new = BKE_nurb_copy(nu, 1, 1);
memcpy(nurb_new->bezt, nu->bezt, sizeof(BezTriple));
}
else {
nurb_new = MEM_callocN(sizeof(Nurb), "BLI_editcurve_addvert new_bezt_nurb 2");