api: do not proceed in backdrop code without frame

This commit is contained in:
shagu
2017-05-08 21:15:30 +02:00
parent eb6130e6c9
commit bdf7c687e4
+3
View File
@@ -323,6 +323,9 @@ end
-- 'legacy' [bool] use legacy backdrop instead of creating frames.
-- 'transp' [bool] force default transparency of 0.8.
function pfUI.api.CreateBackdrop(f, inset, legacy, transp)
-- exit if now frame was given
if not f then return end
-- use default inset if nothing is given
local border = inset
if not border then