Something went wrong around v4.5: undo points created via the API seem broken.
It's a bit like states are "remembered" but no no undo point is actually created (so you need to make a sel change or something to get it, etc.)
Repro example (WinXP, REAPER v4.51, SWS v2.4.0.1):
- save a project with a sel media item
- close reaper, reopen it, load the above project (-> "initial state" undo point)
- run the action "S&M cut take"
=> v4.51: no undo point => KO
=> v4.402 (with same SWS v2.4.0.1): an undo point "cut take" is created OK
- sel another media item, undo "media item sel"
=> v4.51: both the media item sel + "cut take" are undone => KO
The undo code is:
Code:
Undo_OnStateChangeEx2(NULL, SWS_CMD_SHORTNAME(_ct), UNDO_STATE_ALL, -1);
^^ "ceinture et bretelles" as we say in French!
___
IX is also reporting a very similar issue in ReaScript, discussion here:
http://forum.cockos.com/showthread.p...66#post1242566