Skip to content

Commit f0a261d

Browse files
committed
Remove redundant check
1 parent 8c83a70 commit f0a261d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controller/src/controller/scene.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def processSensorData(self, jdata, when):
345345
for detectionType in self.tracker.trackers.keys():
346346
for obj in self.tracker.currentObjects(detectionType):
347347
# When tracking is disabled, do not rely on obj.frameCount being initialized
348-
if (not self.use_tracker or obj.frameCount > 3) and (is_scene_wide or sensor.isPointWithin(obj.sceneLoc)):
348+
if (obj.frameCount > 3) and (is_scene_wide or sensor.isPointWithin(obj.sceneLoc)):
349349
objects_in_sensor.append(obj)
350350
obj.chain_data.active_sensors.add(sensor_id)
351351
else:

0 commit comments

Comments
 (0)