[Bf-blender-cvs] [0cb9926cd9a] master: Fix crash removing the last point of a spline with the new pen tool

Campbell Barton noreply at git.blender.org
Mon Apr 4 04:44:37 CEST 2022


Commit: 0cb9926cd9aefd9986d4b4f61ef6c577004f02d3
Author: Campbell Barton
Date:   Mon Apr 4 12:42:11 2022 +1000
Branches: master
https://developer.blender.org/rB0cb9926cd9aefd9986d4b4f61ef6c577004f02d3

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

===================================================================

M	source/blender/editors/curve/editcurve_pen.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list