Fix birdsye not removing cameras once objects are no longer visible

This commit is contained in:
Nick Mowen 2023-06-19 15:09:24 -06:00
parent 008a420c06
commit f5a272414d

View File

@ -298,10 +298,8 @@ class BirdsEyeFrameManager:
self.clear_frame() self.clear_frame()
return True return True
# check if we need to reset the layout because there are new cameras to add # check if we need to reset the layout because there is a different number of cameras
reset_layout = ( reset_layout = len(self.active_cameras) - len(active_cameras) is not 0
True if len(active_cameras.difference(self.active_cameras)) > 0 else False
)
# reset the layout if it needs to be different # reset the layout if it needs to be different
if reset_layout: if reset_layout: