Page MenuHome

Fix T70281: Changing Default interpolation also changes curve of new drivers
ClosedPublic

Authored by Sybren A. Stüvel (sybren) on Sep 27 2019, 5:03 PM.

Details

Summary

Having a constant FCurve doesn't make sense for drivers, even when the user preference is set to have those by default; either linear or Bezier should be used. Since the code is already creating a Bezier curve, I just added the flag to not look at the user preferences in this case.

This fixes T70281.

Diff Detail

Repository
rB Blender

Event Timeline

Seems ok, except if interpolation and handle type is now guaranteed, I don't see the point of changing handle type to vector just after.

source/blender/editors/animation/drivers.c
141–142

I wonder what's the point of this - two keys with bezier and linear extrapolation already makes it linear.

This revision is now accepted and ready to land.Oct 1 2019, 11:36 AM
Sybren A. Stüvel (sybren) marked an inline comment as done.
Sybren A. Stüvel (sybren) edited the summary of this revision. (Show Details)
  • Remove explicitly setting the handle types to Vector.