diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-08 13:57:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-08 13:57:23 +0400 |
commit | 477d12d1fc106fcbb91f0eb4071e2bb1ca47b196 (patch) | |
tree | c66c403f90f70b7dcbb1ce90e67d638d504f707f /source/blender/editors/mask/mask_ops.c | |
parent | 4413903370265d08b55049648e3f58d3ee87a830 (diff) |
fix for bug in point slide using freed memory when auto-keying.
Diffstat (limited to 'source/blender/editors/mask/mask_ops.c')
-rw-r--r-- | source/blender/editors/mask/mask_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c index 599f3371cac..67fd57ed50b 100644 --- a/source/blender/editors/mask/mask_ops.c +++ b/source/blender/editors/mask/mask_ops.c @@ -751,8 +751,6 @@ static int slide_point_modal(bContext *C, wmOperator *op, wmEvent *event) if (event->val == KM_RELEASE) { Scene *scene = CTX_data_scene(C); - free_slide_point_data(op->customdata); - /* dont key sliding feather uw's */ if ((data->action == SLIDE_ACTION_FEATHER && data->uw) == FALSE) { if (IS_AUTOKEY_ON(scene)) { @@ -760,6 +758,8 @@ static int slide_point_modal(bContext *C, wmOperator *op, wmEvent *event) } } + free_slide_point_data(op->customdata); + WM_event_add_notifier(C, NC_MASK | NA_EDITED, data->mask); DAG_id_tag_update(&data->mask->id, 0); |