Blender Git Loki

Git Commits -> Revision de662e7

Revision de662e7 by Alexander Gavrilov (master)
December 14, 2018, 19:19 (GMT)
NLA: insert keyframes correctly for strips with non-Replace mode.

NLA strips support using the keyframe values in a variety of ways:
adding, subtracting, multiplying, linearly mixing with the result
of strips located below in the stack. This is intended for layering
tweaks on top of a base animation.

However, when inserting keyframes into such strips, it simply inserts
the final value of the property, irrespective of these settings. This
in fact makes the feature nearly useless.

To fix this it is necessary to evaluate the NLA stack below the
edited strip and correctly compute the raw key that would produce
the intended final value, according to the mode and influence.

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

Commit Details:

Full Hash: de662e7cd3b3ca45c4220e3830c32e2b3496c9fe
Parent Commit: fc74903
Lines Changed: +309, -61

13 Modified Paths:

/source/blender/blenkernel/BKE_animsys.h (+9, -0) (Diff)
/source/blender/blenkernel/intern/anim_sys.c (+202, -28) (Diff)
/source/blender/blenkernel/nla_private.h (+15, -0) (Diff)
/source/blender/editors/animation/anim_channels_defines.c (+21, -9) (Diff)
/source/blender/editors/animation/keyframing.c (+24, -7) (Diff)
/source/blender/editors/animation/keyingsets.c (+4, -1) (Diff)
/source/blender/editors/gpencil/gpencil_convert.c (+5, -5) (Diff)
/source/blender/editors/include/ED_keyframing.h (+4, -2) (Diff)
/source/blender/editors/interface/interface_anim.c (+3, -3) (Diff)
/source/blender/editors/space_action/action_edit.c (+5, -1) (Diff)
/source/blender/editors/space_graph/graph_edit.c (+5, -1) (Diff)
/source/blender/editors/transform/transform_conversions.c (+10, -2) (Diff)
/source/blender/python/intern/bpy_rna_anim.c (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021