Calling SetEnvelopePointEx on the first point of an Automation Item is giving incorrect results.
Any other point works as expected.
Replicate (example project is attached):
Make an automation item with more than one point.
Offset the first point a bit
Select the envelope and run this:
Code:
env = reaper.GetSelectedEnvelope(0)
ret, time, value, shape, tension, selected = reaper.GetEnvelopePointEx(env, 0, 0)
reaper.SetEnvelopePointEx(env, 0, 0, time + 1, nil, nil, nil, true, false)
reaper.UpdateArrange()
Expected:
In the example, the point should move to the RIGHT by 1 second.
The point shouldn't move vertically at all since I pass in "nil" as the argument for its value.
Example Project: