Skip to content

Commit

Permalink
Merge pull request #2760 from CommandPost/issue/2759-transition-bbug
Browse files Browse the repository at this point in the history
Fixed bug when applying transitions
  • Loading branch information
latenitefilms committed Sep 10, 2021
2 parents 15b4cf1 + e7b006d commit 3f38616
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/plugins/finalcutpro/timeline/transitions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,15 @@ function mod.apply(action)
-- Take into account the Theme if needed:
--------------------------------------------------------------------------------
local transition = matches[1]
local requestedTitle = action.theme .. " - " .. action.name
if #matches > 1 then
for _, ui in pairs(matches) do
local title = ui:attributeValue("AXTitle")
if title == requestedTitle then
transition = ui
break
if action.theme and action.theme ~= "" then
local requestedTitle = action.theme .. " - " .. action.name
if #matches > 1 then
for _, ui in pairs(matches) do
local title = ui:attributeValue("AXTitle")
if title == requestedTitle then
transition = ui
break
end
end
end
end
Expand Down

0 comments on commit 3f38616

Please sign in to comment.