`U.runtime.is_dirty` is not tagged dirty when some animation preferences are changed. To fix this, pass `rna_userdef_update` updated function which will tag preference dirty with the help of `USERDEF_TAG_DIRTY` macro. Pull Request: https://projects.blender.org/blender/blender/pulls/127754