Fix T41088: Canceling pose library preview does not reset to previous pose.

This commit is contained in:
Bastien Montagne 2014-07-16 12:53:17 +02:00
parent d4726c9a40
commit 0fd194c2cb
Notes: blender-bot 2023-02-14 10:20:06 +01:00
Referenced by issue #41088, Canceling pose library preview does not reset to previous pose
1 changed files with 3 additions and 1 deletions

View File

@ -1490,7 +1490,6 @@ static void poselib_preview_cleanup(bContext *C, wmOperator *op)
DAG_id_tag_update(&ob->id, OB_RECALC_DATA); /* sets recalc flags */
else
BKE_pose_where_is(scene, ob);
}
else if (pld->state == PL_PREVIEW_CONFIRM) {
/* tag poses as appropriate */
@ -1511,6 +1510,9 @@ static void poselib_preview_cleanup(bContext *C, wmOperator *op)
BKE_pose_where_is(scene, ob);
}
/* Request final redraw of the view. */
WM_event_add_notifier(C, NC_OBJECT | ND_POSE, pld->ob);
/* free memory used for backups and searching */
poselib_backup_free_data(pld);
BLI_freelistN(&pld->searchp);