Anim: Fix selection of summary keys of Action/Channel Groups

Fix an issue where selecting a key in the dope sheet summary line for a
channel group would deselect all corresponding keys in the F-Curves of that
group. It was caused by an accidental duplication of the `ChannelBag`.

Pull Request: https://projects.blender.org/blender/blender/pulls/127069
This commit is contained in:
Sybren A. Stüvel
2024-09-02 12:45:57 +02:00
committed by Gitea
parent 094c8b045d
commit e143c0baee

View File

@@ -167,7 +167,7 @@ static short agrp_keyframes_loop(KeyframeEditData *ked,
}
/* Layered actions. */
animrig::ChannelBag channel_bag = agrp->channel_bag->wrap();
animrig::ChannelBag &channel_bag = agrp->channel_bag->wrap();
Span<FCurve *> fcurves = channel_bag.fcurves().slice(agrp->fcurve_range_start,
agrp->fcurve_range_length);
for (FCurve *fcurve : fcurves) {