mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 01:46:03 +00:00
unitframes: save old icon to force update on change
This commit is contained in:
@@ -1236,6 +1236,11 @@ function pfUI.uf:RefreshUnit(unit, component)
|
||||
unit.buffs[i].texture:SetTexture(texture)
|
||||
|
||||
if texture then
|
||||
if unit.buffs[i].oldtexture ~= texture then
|
||||
unit.buffs[i]:Hide()
|
||||
end
|
||||
|
||||
unit.buffs[i].oldtexture = texture
|
||||
unit.buffs[i]:Show()
|
||||
|
||||
if stacks > 1 then
|
||||
|
||||
Reference in New Issue
Block a user