Skip to content

Commit

Permalink
Make FixGroupChildrenOrderForGroup not recurse into subgroups
Browse files Browse the repository at this point in the history
Fixes: #4718
  • Loading branch information
InfusOnWoW committed Dec 5, 2023
1 parent b8d8817 commit 3765cd1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions WeakAuras/WeakAuras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4058,9 +4058,12 @@ function Private.FixGroupChildrenOrderForGroup(data)
else
frameLevel, offset = 2, 4
end
for child in Private.TraverseLeafs(data) do
SetFrameLevel(child.id, frameLevel);
frameLevel = frameLevel + offset;
for _, childId in ipairs(data.controlledChildren) do
local data = WeakAuras.GetData(childId)
if data.regionType ~= "group" and data.regionType ~= "dynamicgroup" then
SetFrameLevel(childId, frameLevel);
frameLevel = frameLevel + offset;
end
end
end

Expand Down

0 comments on commit 3765cd1

Please sign in to comment.