Blender Git Loki

Git Commits -> Revision 1cb884b

Revision 1cb884b by Alexander Gavrilov (master)
October 17, 2017, 16:39 (GMT)
Make auto handle placement aware of cyclic extrapolation.

Cyclic extrapolation is implemented as an f-curve modifier, so this
technically violates abstraction separation and is something of a hack.
However without such behavior achieving smooth looping with cyclic
extrapolation is extremely cumbersome.

The new behavior is applied when the first modifier is Cyclic
extrapolation in Repeat or Repeat with Offset mode without
using influence, repeat count or range restrictions.

This change in behavior means that curve handles have to be updated
when the modifier is added, removed or its options change. Due to the
way code is structured, it seems it requires a helper link to the
containing curve from the modifier object.

Reviewers: aligorith

Differential Revision: https://developer.blender.org/D2783

Commit Details:

Full Hash: 1cb884be35e160740e97065afd6548e6a052c9d8
Parent Commit: 7d3723a
Lines Changed: +109, -23

16 Modified Paths:

/source/blender/blenkernel/BKE_fcurve.h (+4, -1) (Diff)
/source/blender/blenkernel/intern/fcurve.c (+57, -5) (Diff)
/source/blender/blenkernel/intern/fmodifier.c (+16, -1) (Diff)
/source/blender/blenkernel/intern/ipo.c (+1, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+4, -3) (Diff)
/source/blender/editors/animation/drivers.c (+1, -1) (Diff)
/source/blender/editors/animation/fmodifier_ui.c (+9, -1) (Diff)
/source/blender/editors/include/ED_anim_api.h (+1, -1) (Diff)
/source/blender/editors/object/object_constraint.c (+1, -1) (Diff)
/source/blender/editors/object/object_relations.c (+1, -1) (Diff)
/source/blender/editors/space_action/action_edit.c (+1, -1) (Diff)
/source/blender/editors/space_graph/graph_edit.c (+3, -3) (Diff)
/source/blender/editors/space_nla/nla_edit.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_anim_types.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_fcurve.c (+5, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021