Skip to content

Commit

Permalink
https://github.com/oUF-wow/oUF/pull/675
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Apr 20, 2024
1 parent c202dbe commit 6a9e514
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ElvUI_Libraries/Core/oUF/elements/castbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ local function UpdatePips(element, numStages)
pip:Show()

if(isHoriz) then
pip:RotateTextures(0)
if(pip.RotateTextures) then
pip:RotateTextures(0)
end

if(element:GetReverseFill()) then
pip:SetPoint('TOP', element, 'TOPRIGHT', -offset, 0)
Expand All @@ -194,7 +196,9 @@ local function UpdatePips(element, numStages)
pip:SetPoint('BOTTOM', element, 'BOTTOMLEFT', offset, 0)
end
else
pip:RotateTextures(1.5708)
if(pip.RotateTextures) then
pip:RotateTextures(1.5708)
end

if(element:GetReverseFill()) then
pip:SetPoint('LEFT', element, 'TOPLEFT', 0, -offset)
Expand Down

0 comments on commit 6a9e514

Please sign in to comment.