Fix crash extruding an empty curve

This commit is contained in:
Campbell Barton 2015-03-10 18:22:08 +11:00
parent 81b50bcf5f
commit 95a1cc20dc
1 changed files with 4 additions and 0 deletions

View File

@ -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);