mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-08 06:30:00 +00:00
ui-widgets: abort early on invalid frames
This commit is contained in:
@@ -870,6 +870,7 @@ end
|
||||
-- 'frame' [frame] the frame that should be stripped.
|
||||
-- 'layer' [string] texture layer.
|
||||
function pfUI.api.StripTextures(frame, hide, layer)
|
||||
if not frame then return end
|
||||
for _,v in ipairs({frame:GetRegions()}) do
|
||||
if v.SetTexture then
|
||||
local check = true
|
||||
|
||||
Reference in New Issue
Block a user