Skip to content

Commit 82b9560

Browse files
authored
Update BuyOne_Lock FX and FX chains (guide inside).lua (ReaTeam#967)
1 parent 92ebe16 commit 82b9560

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

FX/BuyOne_Lock FX and FX chains/BuyOne_Lock FX and FX chains (guide inside).lua

+3-5
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@
1010
* Licence: WTFPL
1111
* Forum Thread:
1212
* Demo:
13-
* Version: 1.1
13+
* Version: 1.2
1414
* REAPER: at least v5.962
1515
* Extensions:
16-
* Changelog:
17-
+ v1.0 Initial release
18-
+ v1.1 Added proper takes support
16+
* Changelog: Minor update of relational operator
1917
]]
2018

2119
--[[
@@ -115,7 +113,7 @@ local function GetObjChunk(retval, obj)
115113
-- Try standard function -----
116114
local t = retval == 1 and {r.GetTrackStateChunk(obj, '', false)} or {r.GetItemStateChunk(obj, '', false)} -- isundo = false
117115
local ret, obj_chunk = table.unpack(t)
118-
if ret and obj_chunk and #obj_chunk > 4194303 and not r.APIExists('SNM_CreateFastString') then return 'err_mess'
116+
if ret and obj_chunk and #obj_chunk >= 4194303 and not r.APIExists('SNM_CreateFastString') then return 'err_mess'
119117
elseif ret and obj_chunk and #obj_chunk < 4194303 then return ret, obj_chunk -- 4194303 bytes = (4096 kb * 1024 bytes) - 1 byte
120118
end
121119
-- If chunk_size >= max_size, use wdl fast string --

0 commit comments

Comments
 (0)