(fix/ProgressTexture): regression uninitialized inverse option caused progress to mirror or ignore inversion

(cherry picked from commit 19c75e2c3ceddc23340367f3a77357fb9c04968f)
This commit is contained in:
NoM0Re
2025-11-04 18:18:45 +01:00
committed by andrew6180
parent a4764e7d48
commit a886634cce
+1 -2
View File
@@ -425,8 +425,6 @@ end
WeakAuras.createSpinner = createSpinner; WeakAuras.createSpinner = createSpinner;
local function create(parent) local function create(parent)
local font = "GameFontHighlight";
local region = CreateFrame("Frame", nil, parent); local region = CreateFrame("Frame", nil, parent);
region.regionType = "progresstexture" region.regionType = "progresstexture"
region:SetMovable(true); region:SetMovable(true);
@@ -556,6 +554,7 @@ local function modify(parent, region, data)
region.startAngle = data.startAngle or 0; region.startAngle = data.startAngle or 0;
region.endAngle = data.endAngle or 360; region.endAngle = data.endAngle or 360;
region.inverseDirection = data.inverse;
local function orientHorizontal() local function orientHorizontal()
foreground:ClearAllPoints(); foreground:ClearAllPoints();