Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-04-04 05:42:11 +0300
committerCampbell Barton <campbell@blender.org>2022-04-04 05:42:11 +0300
commit0cb9926cd9aefd9986d4b4f61ef6c577004f02d3 (patch)
tree239c79daa30deb8921f86ed31c815b58964eb381
parente26cc6aee31afd3927ce06d31d4aafa3f7317fb5 (diff)
Fix crash removing the last point of a spline with the new pen tool
-rw-r--r--source/blender/editors/curve/editcurve_pen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/curve/editcurve_pen.c b/source/blender/editors/curve/editcurve_pen.c
index ec3d7f52bcf..a2ec61633eb 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -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;