Fix crash removing the last point of a spline with the new pen tool

This commit is contained in:
Campbell Barton 2022-04-04 12:42:11 +10:00
parent e26cc6aee3
commit 0cb9926cd9
1 changed files with 1 additions and 0 deletions

View File

@ -1299,6 +1299,7 @@ static bool delete_point_under_mouse(ViewContext *vc, const wmEvent *event)
if (nu->pntsu == 0) {
delete_nurb(cu, nu);
nu = NULL;
}
deleted = true;
cu->actvert = CU_ACT_NONE;