Skip to content

Commit

Permalink
fix party rotation for portrait
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed Nov 21, 2024
1 parent 50b31ac commit 3cf4310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ElvUI_EltreumUI/Modules/Skins/Unitframes/PortraitSkin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ local function CreatePorfraitFrameAndTexture(frame,name,invert,update,db,Setting
frame.EltruismPortrait.portrait:AddMaskTexture(frame.EltruismPortrait.Mask)

if not E.db.ElvUI_EltreumUI.unitframes.portrait[db].custom then
if ElvUI_EltreumUI:ShouldRotatePortrait(model) and db ~= "player" then
if ElvUI_EltreumUI:ShouldRotatePortrait(model) and db ~= "player" and (db ~= "party" or (db == "party" and E.db.ElvUI_EltreumUI.unitframes.portrait[db].position.align == "RIGHT")) then
frame.EltruismPortrait.portrait:SetTexCoord(1 - E.db.ElvUI_EltreumUI.unitframes.portrait[db].scale, E.db.ElvUI_EltreumUI.unitframes.portrait[db].scale, E.db.ElvUI_EltreumUI.unitframes.portrait[db].scale, 1 - E.db.ElvUI_EltreumUI.unitframes.portrait[db].scale)
else
frame.EltruismPortrait.portrait:SetTexCoord(E.db.ElvUI_EltreumUI.unitframes.portrait[db].scale, 1 - E.db.ElvUI_EltreumUI.unitframes.portrait[db].scale, E.db.ElvUI_EltreumUI.unitframes.portrait[db].scale, 1 - E.db.ElvUI_EltreumUI.unitframes.portrait[db].scale)
Expand Down

0 comments on commit 3cf4310

Please sign in to comment.