Blender Git Loki

Git Commits -> Revision 7830ea2

Revision 7830ea2 by Sybren A. Stüvel (master)
December 17, 2019, 14:22 (GMT)
Fix T68665: FCurve group disappear on Curve/Surface object data

When going from EDIT to OBJECT mode, Blender updates the object data from
the edit-mode data. This took care of renaming FCurves that animate Curve
control points when control points are added/removed, but this didn't keep
the FCurve groups intact. Since the FCurve groups are tightly connected to
the Action channels, it's hard to keep the group pointers intact during
this process. Instead of making the code even more complex in an attempt to
do that, I implemented a function (`BKE_action_groups_reconstruct()`) that
rebuilds the group channel pointers.

The call to `action_groups_add_channel()` had to be removed because it
updates the the next/prev pointers of the FCurve while we're looping over
them, causing infinite loops.

Commit Details:

Full Hash: 7830ea29c2ea6c30cec1dcd6d6c11a1f228e9cd7
Parent Commit: 3a55621
Lines Changed: +48, -1

3 Modified Paths:

/source/blender/blenkernel/BKE_action.h (+3, -0) (Diff)
/source/blender/blenkernel/intern/action.c (+37, -0) (Diff)
/source/blender/editors/curve/editcurve.c (+8, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021