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
This commit is contained in:
Sv. Lockal 2013-07-21 17:59:36 +00:00
parent 4dfe00c802
commit bb1503417b

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