File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
modules/MusicianNamePlates Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -430,9 +430,10 @@ function Musician.NamePlates.UpdateNamePlateCinematicMode(namePlate)
430
430
if InCombatLockdown () then return end
431
431
432
432
local UIParentIsVisible = UIParent :IsVisible ()
433
+ local isCinematicModeEnabled = Musician .NamePlates .AreNamePlatesEnabled () and Musician_Settings .cinematicMode
433
434
434
435
-- Attach animated notes frame to WorldFrame if hiding nameplates in cinematic mode
435
- if not Musician_Settings .cinematicModeNamePlates and Musician_Settings . cinematicMode then
436
+ if not Musician_Settings .cinematicModeNamePlates and isCinematicModeEnabled then
436
437
local parent , scale
437
438
if not UIParentIsVisible then
438
439
parent = WorldFrame
@@ -449,8 +450,8 @@ function Musician.NamePlates.UpdateNamePlateCinematicMode(namePlate)
449
450
end
450
451
451
452
-- Set nameplate visibility
452
- if not Musician_Settings .cinematicModeNamePlates and Musician_Settings . cinematicMode or
453
- not Musician_Settings . cinematicMode then
453
+ if not Musician_Settings .cinematicModeNamePlates and isCinematicModeEnabled or
454
+ not isCinematicModeEnabled then
454
455
if UIParentIsVisible then
455
456
namePlate :Show ()
456
457
else
664
665
--- OnSetUIVisibility
665
666
-- @param isVisible (boolean)
666
667
function Musician .NamePlates .OnSetUIVisibility (isVisible )
667
- if isVisible or not isVisible and Musician_Settings .cinematicMode then
668
+ if isVisible or not isVisible and Musician . NamePlates . AreNamePlatesEnabled () and Musician_Settings .cinematicMode then
668
669
SetInWorldUIVisibility (true )
669
670
end
670
671
end
You can’t perform that action at this time.
0 commit comments