don't render footprint if we're minmized

develop
Myk Taylor 2023-03-23 11:07:10 -07:00
parent 8ef4932897
commit 013c6fe02a
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 2 additions and 0 deletions

@ -694,6 +694,8 @@ function PlannerOverlay:onRenderFrame(dc, rect)
uibs.building_type, uibs.building_subtype, uibs.custom_type)) uibs.building_type, uibs.building_subtype, uibs.custom_type))
end end
if self.minimized then return end
local selection_pos = self.saved_selection_pos or uibs.selection_pos local selection_pos = self.saved_selection_pos or uibs.selection_pos
if not selection_pos or selection_pos.x < 0 then return end if not selection_pos or selection_pos.x < 0 then return end