Fix T66913: undo after frame-change doesn't refresh properly
Use the ID.recalc flag to detect when updates after frame-change is needed. Since comparing the last calculated frame doesn't take undo into account (see code-comment for details). `ID_RECALC_AUDIO_SEEK` has been renamed to `ID_RECALC_FRAME_CHANGE` since this is not only related to audio however internally this flag is still categorized in `NodeType::AUDIO`. Reviewed By: sergey Ref D13942
This commit is contained in:
@@ -169,7 +169,7 @@ static void change_frame_apply(bContext *C, wmOperator *op)
|
||||
FRAMENUMBER_MIN_CLAMP(CFRA);
|
||||
|
||||
/* do updates */
|
||||
DEG_id_tag_update(&scene->id, ID_RECALC_AUDIO_SEEK);
|
||||
DEG_id_tag_update(&scene->id, ID_RECALC_FRAME_CHANGE);
|
||||
WM_event_add_notifier(C, NC_SCENE | ND_FRAME, scene);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user