Skip to content

Commit

Permalink
Icon: Optimize reskinning of Icons
Browse files Browse the repository at this point in the history
Patch by StormFX
  • Loading branch information
InfusOnWoW committed Oct 20, 2022
1 parent 2a67c2f commit 388709e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions WeakAuras/RegionTypes/Icon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,7 @@ local function modify(parent, region, data)
end

if region.MSQGroup then
region.MSQGroup:RemoveButton(button)
region.MSQGroup:AddButton(button, {Icon = icon, Cooldown = cooldown}, "WA_Aura", true)
region.MSQGroup:ReSkin(button)
end

local ulx, uly, llx, lly, urx, ury, lrx, lry = GetTexCoord(region, texWidth, aspectRatio)
Expand Down

0 comments on commit 388709e

Please sign in to comment.