Skip to content

Commit

Permalink
Don't count abutting items as overlapping
Browse files Browse the repository at this point in the history
  • Loading branch information
chmaha committed Feb 6, 2025
1 parent 09edf29 commit 4dc6d03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ReaClassical/ReaClassical_3-point Insert Edit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ function check_overlapping_items()
local length2 = GetMediaItemInfo_Value(item2, "D_LENGTH")
local end2 = start2 + length2

if cursor_pos >= start2 and cursor_pos <= end2 then
if cursor_pos > start2 and cursor_pos <= end2 then
overlapping = true
break
end
Expand Down
2 changes: 1 addition & 1 deletion ReaClassical/ReaClassical_Insert with timestretching.lua
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ function check_overlapping_items()
local length2 = GetMediaItemInfo_Value(item2, "D_LENGTH")
local end2 = start2 + length2

if cursor_pos >= start2 and cursor_pos <= end2 then
if cursor_pos > start2 and cursor_pos <= end2 then
overlapping = true
break
end
Expand Down
3 changes: 2 additions & 1 deletion ReaClassical/ReaClassical_S-D Edit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,8 @@ function check_overlapping_items()
local length2 = GetMediaItemInfo_Value(item2, "D_LENGTH")
local end2 = start2 + length2

if cursor_pos >= start2 and cursor_pos <= end2 then
if cursor_pos > start2 and cursor_pos <= end2 then
ShowConsoleMsg("Made it here!")
overlapping = true
break
end
Expand Down

0 comments on commit 4dc6d03

Please sign in to comment.