Skip to content

Commit

Permalink
Update az_Fade tool (work on context of mouse, razor or time selectio…
Browse files Browse the repository at this point in the history
…n).lua

fixed one regression
  • Loading branch information
AZpercussion authored Sep 1, 2024
1 parent 5653404 commit 606c684
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
-- @changelog
-- - ignore snapping for certain cases
-- - apply font resizing immediately
-- - fixed regression with mouse fade on selected item
-- @provides
-- az_Fade tool (work on context of mouse, razor or time selection)/az_Options window for az_Fade tool.lua
-- [main] az_Fade tool (work on context of mouse, razor or time selection)/az_Open options for az_Fade tool.lua
Expand Down Expand Up @@ -1876,12 +1877,12 @@ function SortSelItems(Items, ref_item, ref_leftItem, ref_rightItem, reverseFlag)

if i_autoFin ~= 0 then
leftItem = FindXfadedNeigbourItem(item, i_pos, i_end, -1)
leftIlock = reaper.GetMediaItemInfo_Value( leftItem, "C_LOCK" )
if leftItem then leftIlock = reaper.GetMediaItemInfo_Value( leftItem, "C_LOCK" ) end
end

if i_autoFout ~= 0 then
rightItem = FindXfadedNeigbourItem(item, i_pos, i_end, 1)
rightIlock = reaper.GetMediaItemInfo_Value( rightItem, "C_LOCK" )
if rightItem then rightIlock = reaper.GetMediaItemInfo_Value( rightItem, "C_LOCK" ) end
end

if leftIlock == 1 and Opt.IgnoreLockingMouse == false then leftItem = nil end
Expand Down

0 comments on commit 606c684

Please sign in to comment.