Skip to content

Commit

Permalink
(small refactoring)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfillion committed Jan 22, 2024
1 parent 91215da commit 0d006d3
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ for i = 0, reaper.CountSelectedTracks(nil) - 1 do
if MODE_AFTER then
local id = reaper.GetMediaTrackInfo_Value(track, 'IP_TRACKNUMBER')
track = reaper.GetTrack(nil, id)
if not track then break end
end
if track then
local spacer = reaper.GetMediaTrackInfo_Value(track, 'I_SPACER')
reaper.SetMediaTrackInfo_Value(track, 'I_SPACER', spacer ~ 1)
end
local spacer = reaper.GetMediaTrackInfo_Value(track, 'I_SPACER')
reaper.SetMediaTrackInfo_Value(track, 'I_SPACER', spacer ~ 1)
end
reaper.Undo_EndBlock(SCRIPT_NAME, UNDO_STATE_TRACKCFG)
reaper.PreventUIRefresh(-1)

0 comments on commit 0d006d3

Please sign in to comment.