diff options
author | Sv. Lockal <lockalsash@gmail.com> | 2013-07-21 21:59:36 +0400 |
---|---|---|
committer | Sv. Lockal <lockalsash@gmail.com> | 2013-07-21 21:59:36 +0400 |
commit | bb1503417b14489dfaf38813bfe6e64e7fef0350 (patch) | |
tree | 90c59d74e83c09d96d413135638264507dc9e4a9 /source/blender/editors/mask | |
parent | 4dfe00c80226dc1d8bffb0af0605e552aa6e65ef (diff) |
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
Diffstat (limited to 'source/blender/editors/mask')
-rw-r--r-- | source/blender/editors/mask/mask_add.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |