Fix T41088: Canceling pose library preview does not reset to previous pose.
This commit is contained in:
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
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue