Fix T97003: color-management settings can't be animated

Regression in [0] which missed excluding FRAME_CHANGE from
deg_recalc_flags_for_legacy_zero causing all
DEG_id_tag_update(&scene->id, 0) calls to re-calculate animation data.

When this tagging was done in the RNA update function, changing
key-framed values in the UI would be immediate reset to their
keyed-values.

Thanks to Philipp Oeser for finding the root cause.

[0]: 35aedd87e7
This commit is contained in:
Campbell Barton 2022-04-05 20:58:50 +10:00
parent f87029f7b1
commit 328dfab423
Notes: blender-bot 2023-02-14 06:49:54 +01:00
Referenced by issue #99168, Motion Blur Shutter value allows to add keyframe, and yet does not allow to change the value on subsequents keyframes [3.1.2]
Referenced by issue #97028, Audio scrubbing plays current frame when changing any color management setting.
Referenced by issue #97003, Regression: Blender doesn't allow to animate any Colormanagement setting (e.g. Exposure)
Referenced by issue #96241, 3.1: Potential candidates for corrective releases
1 changed files with 2 additions and 2 deletions

View File

@ -445,8 +445,8 @@ const char *update_source_as_string(eUpdateSource source)
int deg_recalc_flags_for_legacy_zero()
{
return ID_RECALC_ALL &
~(ID_RECALC_PSYS_ALL | ID_RECALC_ANIMATION | ID_RECALC_SOURCE | ID_RECALC_EDITORS);
return ID_RECALC_ALL & ~(ID_RECALC_PSYS_ALL | ID_RECALC_ANIMATION | ID_RECALC_FRAME_CHANGE |
ID_RECALC_SOURCE | ID_RECALC_EDITORS);
}
int deg_recalc_flags_effective(Depsgraph *graph, int flags)