Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2021-03-23 11:41:48 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-04-20 10:56:02 +0300
commitdb0b1cab1f8c2798d5f088b98f4055987a19796e (patch)
treeef16b981bf635b7c0c29e864db71ac93591e8e70
parent72fec0f7c5865a30aa348bc6e76271ba9a5a606e (diff)
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
-rw-r--r--source/blender/editors/space_action/space_action.c5
1 files changed, 5 insertions, 0 deletions
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);
}