Fix #140452: Pasting a single keyframe may mess up handles
The issue was that the wrong flag was passed to `ANIM_nla_mapping_apply_if_needed_fcurve` resulting in the handles not moved back in this method. This issue was only visible when pasting on top of a single keyframe, or when the key had free handles. That is because the handles would be recalculated otherwise. Pull Request: https://projects.blender.org/blender/blender/pulls/140542
This commit is contained in:
committed by
Christoph Lendenfeld
parent
bce0f3f677
commit
4fbcdba21e
@@ -2142,7 +2142,7 @@ eKeyPasteError paste_animedit_keys(bAnimContext *ac,
|
||||
ANIM_nla_mapping_apply_if_needed_fcurve(ale, fcu, false, false);
|
||||
paste_animedit_keys_fcurve(
|
||||
fcu, fcurve_in_copy_buffer, offset, paste_context.merge_mode, false);
|
||||
ANIM_nla_mapping_apply_if_needed_fcurve(ale, fcu, true, true);
|
||||
ANIM_nla_mapping_apply_if_needed_fcurve(ale, fcu, true, false);
|
||||
|
||||
ale->update |= ANIM_UPDATE_DEFAULT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user