Fix T78883: New bezier curve points to uninitialized memory
This commit is contained in:
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
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue