From 8b5d94b862ba107da5f26b42522504a86636cb4d Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 2 Jun 2020 00:25:24 +0200 Subject: [PATCH] unitframes: set buff backdrop only once --- api/unitframes.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 7948f68a..b592b89c 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -624,6 +624,9 @@ function pfUI.uf:UpdateConfig() f.buffs[i].cd:SetAlpha(0) f.buffs[i].id = i + CreateBackdrop(f.buffs[i], default_border) + CreateBackdropShadow(f.buffs[i]) + f.buffs[i]:RegisterForClicks("RightButtonUp") f.buffs[i]:ClearAllPoints() @@ -1219,9 +1222,6 @@ function pfUI.uf:RefreshUnit(unit, component) texture, stacks = UnitBuff(unitstr, i) end - CreateBackdrop(unit.buffs[i], default_border) - CreateBackdropShadow(unit.buffs[i]) - unit.buffs[i].texture:SetTexture(texture) if texture then