Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 06-27-2020, 10:34 AM   #1
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 2,203
Default [6.12] Undo is not created when removing envelopes with SetTrackStateChunk

(pic)

Example script to reproduce:
Code:
reaper.Undo_BeginBlock()
track = reaper.GetSelectedTrack(0,0)
_, chunk = reaper.GetTrackStateChunk( track, "", false )
reaper.SetTrackStateChunk( track, chunk:gsub("<VOLENV2.->\n", ""), false )
reaper.Undo_EndBlock( "Clear Track Vol Envelope", 1 )
No undo point is created no matter if the SetTrackStateChunk isundo flag is set to true or false.
No undo point is created even if different undo API is used:
Code:
reaper.Undo_OnStateChangeEx( "Clear Track Vol Envelope", 1, -1 )
amagalma is offline   Reply With Quote
Old 07-02-2020, 03:29 AM   #2
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 2,203
Default

small bump
amagalma is offline   Reply With Quote
Old 07-02-2020, 08:58 AM   #3
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,948
Default

Thanks, fixing!
Justin is offline   Reply With Quote
Old 07-02-2020, 01:53 PM   #4
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 2,203
Default

Quote:
Originally Posted by Justin View Post
Thanks, fixing!

Thanks, Justin!


Could you please have a look to this envelope related bug report+feature request?
amagalma is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.