From 8df84f7be48bf64984976edf96f68dc7d7471b76 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Tue, 3 Nov 2020 16:42:22 +0100 Subject: [PATCH] Fix T82364: Widget anim state not updated when deleting channel in Graph Editor So a keyframed e.g. location slider would stay yellow/green even if its corresponding channel was removed. Needs a appropriate notifier so the listeners (e.g. buttons_area_listener, view3d_buttons_region_listener) would cause a redraw. Maniphest Tasks: T82364 Differential Revision: https://developer.blender.org/D9438 --- source/blender/editors/animation/anim_channels_edit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c index 77ebc1606fa..360335a54d7 100644 --- a/source/blender/editors/animation/anim_channels_edit.c +++ b/source/blender/editors/animation/anim_channels_edit.c @@ -1919,6 +1919,7 @@ static int animchannels_delete_exec(bContext *C, wmOperator *UNUSED(op)) /* send notifier that things have changed */ WM_event_add_notifier(C, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL); + WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME | NA_REMOVED, NULL); DEG_relations_tag_update(CTX_data_main(C)); return OPERATOR_FINISHED;