Blender Git Loki
Git Commits -> Revision 7e2100e
Revision 7e2100e by Joshua Leung (master) March 8, 2018, 04:15 (GMT) |
T54233: NLA "Push Down" discards Blend Mode, Extrapolation, and Influence Each AnimData block has a set of Blend/Extrapolation/Influence settings that can be used to control how the active action is blended with the NLA stack. However, these settings were not getting copied over to the newly created strips (as the push-down code existed long before these settings were added). This commit solves this in several ways: * Active Action Blend/Extrapolation/Influence settings now get copied to the new strips when adding them to the NLA stack via Push Down. Note: This doesn't happen when there are no existing NLA tracks, as these settings don't get used in that case. * Strip Influence will be copied across when inf < 1.0 (i.e. when a non-default value is used), to maintain the effect. To make this work, the influence value will get added as a keyframe to the strip's "Influence" Control FCurve. - See code comments for an alternative approach and why that was not chosen - Strip Time still doesn't get keyframes added automatically yet. * To ensure the "extrapolation mode" settings don't get always overwritten, I've put in place a compromise: the extrapolation will only get changed if the chosen setting will cause problmes (i.e. hold forward & back -> hold forward if there are other tracks before it already). Not safe for backporting to 2.79[x] stable releases. |
Commit Details:
Full Hash: 7e2100e49914e5d32973b3d28134340e0404f1bf
Parent Commit: fb70f9b
Lines Changed: +36, -3
1 Modified Path:
/source/blender/blenkernel/intern/nla.c (+36, -3) (Diff)