Skip to content

Commit

Permalink
Dynamic Group: fix group scaling when parent is not group itself
Browse files Browse the repository at this point in the history
fixes #4637
  • Loading branch information
mrbuds authored and InfusOnWoW committed Oct 15, 2023
1 parent 2560dfe commit 9b02c49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WeakAuras/RegionTypes/DynamicGroup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1391,9 +1391,11 @@ local function modify(parent, region, data)
end
if parent and parent.IsObjectType and parent:IsObjectType("Frame") then
controlPoint:SetParent(parent)
controlPoint:SetScale(data.scale and data.scale > 0 and data.scale <= 10 and data.scale or 1)
end
else
controlPoint:SetParent(self)
controlPoint:SetScale(1)
end
if self.anchorPerUnit == "UNITFRAME" then
Private.dyngroup_unitframe_monitor[regionData] = frame
Expand Down

0 comments on commit 9b02c49

Please sign in to comment.