Fix crash extruding an empty curve
This commit is contained in:
@@ -4901,6 +4901,10 @@ static bool ed_editcurve_extrude(Curve *cu, EditNurb *editnurb)
|
||||
void *p;
|
||||
} cu_actvert;
|
||||
|
||||
if (BLI_listbase_is_empty(&editnurb->nurbs)) {
|
||||
return changed;
|
||||
}
|
||||
|
||||
BKE_curve_nurb_vert_active_get(cu, &cu_actnu, &cu_actvert.p);
|
||||
BKE_curve_nurb_vert_active_set(cu, NULL, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user