mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 02:16:02 +00:00
api: abort autopoint if no center was found
This commit is contained in:
@@ -580,6 +580,8 @@ function pfUI.api.SetAutoPoint(frame, parent, spacing)
|
||||
|
||||
local x, y = parent:GetCenter()
|
||||
|
||||
if not x or not y then return end
|
||||
|
||||
local off = spacing or 0
|
||||
|
||||
frame:ClearAllPoints()
|
||||
|
||||
Reference in New Issue
Block a user