From bb1503417b14489dfaf38813bfe6e64e7fef0350 Mon Sep 17 00:00:00 2001 From: "Sv. Lockal" Date: Sun, 21 Jul 2013 17:59:36 +0000 Subject: Fix crash in adding a new mask point after subdividing an inactive spline add_vertex_extrude relies on active spline for containing an active point --- source/blender/editors/mask/mask_add.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/mask/mask_add.c') diff --git a/source/blender/editors/mask/mask_add.c b/source/blender/editors/mask/mask_add.c index 33a6aa2d43d..9c270144a0a 100644 --- a/source/blender/editors/mask/mask_add.c +++ b/source/blender/editors/mask/mask_add.c @@ -387,6 +387,7 @@ static int add_vertex_subdivide(const bContext *C, Mask *mask, const float co[2] /* TODO - we could pass the spline! */ BKE_mask_layer_shape_changed_add(masklay, BKE_mask_layer_shape_spline_to_index(masklay, spline) + point_index + 1, TRUE, TRUE); + masklay->act_spline = spline; masklay->act_point = new_point; WM_event_add_notifier(C, NC_MASK | NA_EDITED, mask); -- cgit v1.2.3