unitframes: do not proceed on hidden frames

This commit is contained in:
shagu
2017-05-14 15:47:46 +02:00
parent e8e0d67b6f
commit bbbef96d3e
+2
View File
@@ -573,6 +573,8 @@ function pfUI.uf:RefreshUnit(unit, component)
if not unit.cache then unit.cache = {} end
if not unit.id then unit.id = "" end
if not unit:IsShown() then return end
-- Raid Icon
if unit.raidIcon and ( component == "all" or component == "raidIcon" ) then
local raidIcon = GetRaidTargetIndex(unit.label .. unit.id)