Fix #119623: Anim: unintended API change in keyframe_insert() function #119625

Merged
Sybren A. Stüvel merged 1 commits from dr.sybren/blender:pr/fix-119623-insertkey-xyz-rgb into blender-v4.1-release 2024-03-19 10:05:35 +01:00

1 Commits

Author SHA1 Message Date
Sybren A. Stüvel 82110f00f7 Fix #119623: Anim: unintended API change in keyframe_insert() function
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
Bring back the `INSERTKEY_XYZ_TO_RGB` enum item for the
`keyframe_insert()` function (it was removed in 30b0c5b225). This way
any Python code that targets Blender 4.x can safely pass this flag,
without having to check specific Blender versions.

Note that the flag is implemented as a no-op, as the behaviour change
introduced in 30b0c5b225 (just looking at the user preference) is still
retained. The purpose of this commit is simply to avoid the `ValueError`
exception that would otherwise be raised.

This should also fix Rigify report blender/blender-addons#105241.
2024-03-18 18:13:48 +01:00