FIXED (v5.981+dev0813a)
API: SetTrackStateChunk() - FX settings not replaced if 'Avoid loading undo states when possible' enabled
This issue came up with SWS Resources / Track templates
here.
cfillion could confirm also with ReaEQ:
Code:
t = reaper.GetTrack(0, 0)
_, c = reaper.GetTrackStateChunk(t, '')
-- (reset or tweak the effect before the next line)
reaper.SetTrackStateChunk(t, c)
-- result: effect settings are not replaced if "Avoid loading undo states when possible" is enabled
-- unless the effect is set offline first
reaper.TrackFX_SetOffline(t, 0, true)
reaper.SetTrackStateChunk(t, c) -- works now
(If this turns out to be not a bug / live with it we could probably use the TrackFX_SetOffline() workaround in SWS.)