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
This commit is contained in:
parent
b35e3f2460
commit
8df84f7be4
Notes:
blender-bot
2023-09-08 04:55:43 +02:00
Referenced by issue #82364, Keyframe indicator in location menu stays yellow when deleting channel in Graph Editor until changing a frame
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue