Commit: 0fd194c2cb7d679d2c4c6c4f1366cdedf84c1f77
Author: Bastien Montagne
Date:   Wed Jul 16 12:53:17 2014 +0200
https://developer.blender.org/rB0fd194c2cb7d679d2c4c6c4f1366cdedf84c1f77

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

===================================================================

M       source/blender/editors/armature/pose_lib.c

===================================================================

diff --git a/source/blender/editors/armature/pose_lib.c 
b/source/blender/editors/armature/pose_lib.c
index 0b115da..6762ffc 100644
--- a/source/blender/editors/armature/pose_lib.c
+++ b/source/blender/editors/armature/pose_lib.c
@@ -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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to