[Bf-blender-cvs] [db0b1cab1f8] blender-v2.93-release: Fix T86809: Action Editor header not display the right action in certain scenarios

Philipp Oeser noreply at git.blender.org
Tue Apr 20 10:05:57 CEST 2021


Commit: db0b1cab1f8c2798d5f088b98f4055987a19796e
Author: Philipp Oeser
Date:   Tue Mar 23 09:41:48 2021 +0100
Branches: blender-v2.93-release
https://developer.blender.org/rBdb0b1cab1f8c2798d5f088b98f4055987a19796e

Fix T86809: Action Editor header not display the right action in certain scenarios

If a new action is created (e.g. by inserting keyframes), the header was
not garuanteed to display the right action.
Notifiers were fine here, redraw took place, the editors action was just
not set soon enough for the drawing.

Now make sure this is set correctly by ensuring the animation context is
right (same as the other editor regions do before drawing).

Maniphest Tasks: T86809

Differential Revision: https://developer.blender.org/D10796

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

M	source/blender/editors/space_action/space_action.c

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

diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c
index 722005235d3..f6af2f79890 100644
--- a/source/blender/editors/space_action/space_action.c
+++ b/source/blender/editors/space_action/space_action.c
@@ -301,6 +301,11 @@ static void action_header_region_init(wmWindowManager *UNUSED(wm), ARegion *regi
 
 static void action_header_region_draw(const bContext *C, ARegion *region)
 {
+  /* The anim context is not actually used, but this makes sure the action being displayed is up to
+   * date. */
+  bAnimContext ac;
+  ANIM_animdata_get_context(C, &ac);
+
   ED_region_header(C, region);
 }



More information about the Bf-blender-cvs mailing list