fix for bug in point slide using freed memory when auto-keying.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user