lightspark |
08-27-17 06:37 AM |
[7.2.5+] frame:SetClipsChildren(true) causes flickering in certain scenarios
Title says it all.
This snippet will allow you to reproduce this bug:
Lua Code:
local frame = CreateFrame("Frame") frame:RegisterEvent("NAME_PLATE_UNIT_ADDED") frame:SetScript("OnEvent", function(_, event, unit) if event == "NAME_PLATE_UNIT_ADDED" and unit then local nameplate = C_NamePlate.GetNamePlateForUnit(unit) if not nameplate then return end if not nameplate.test then local test = CreateFrame("Frame", "Test"..nameplate:GetName(), nameplate) test:SetPoint("CENTER", nameplate, "CENTER", 0, 0) test:SetSize(64, 64) test:SetScale(UIParent:GetEffectiveScale()) nameplate.test = test local child = CreateFrame("Frame", nil, test) child:SetSize(128, 12) child:SetPoint("TOP", test, "TOP", 0, 0) child:SetClipsChildren(true) local texture = child:CreateTexture("") texture:SetAllPoints() texture:SetColorTexture(0, 1, 1) end end end)
Result looks like this:
If I set it to false, no flickering occurs.
If I parent test frame to, let's say, UIParent other frames start flickering, for instance, CharacterFrame or Minimap.
Obv, this bug is present on PTR too.
|