Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions libs/chiliui/luamenu/chili/chili/controls/control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ function Control:GetRelativeBox(savespace)
end

local p = self.parent
if (not p) then
if not p or not UnlinkSafe(p) then
return t
end

Expand Down Expand Up @@ -921,7 +921,7 @@ end


function Control:_UpdateOwnDList()
if not self.parent then return end
if not self.parent or not UnlinkSafe(self.parent) then return end
if not self:IsInView() then return end
if not self.useDLists then return end

Expand All @@ -931,7 +931,7 @@ end


function Control:_UpdateChildrenDList()
if not self.parent then return end
if not self.parent or not UnlinkSafe(self.parent) then return end
if not self:IsInView() then return end

if self:InheritsFrom("scrollpanel") and not self._cantUseRTT then
Expand All @@ -948,7 +948,7 @@ end


function Control:_UpdateAllDList()
if not self.parent then return end
if not self.parent or not UnlinkSafe(self.parent) then return end
if not self:IsInView() then return end

local RTT = self:_CheckIfRTTisAppreciated()
Expand Down Expand Up @@ -1138,7 +1138,7 @@ end


function Control:IsRectInView(x,y,w,h)
if (not self.parent) then
if not self.parent or not UnlinkSafe(self.parent) then
return false
end

Expand Down