From 755546d786975f15cd1896e43248afb517fe2458 Mon Sep 17 00:00:00 2001 From: Naushir Patuck Date: Tue, 12 Nov 2024 09:49:29 +0000 Subject: [PATCH] core: Re-enable rpi::ScalerCrops control Handling this control was disabled in a previous patch, re-enable it. Signed-off-by: Naushir Patuck --- picamera2/picamera2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picamera2/picamera2.py b/picamera2/picamera2.py index 30a379f4..72f57e42 100644 --- a/picamera2/picamera2.py +++ b/picamera2/picamera2.py @@ -1122,7 +1122,7 @@ def configure_(self, camera_config="preview") -> None: self.controls = Controls(self, controls=self.camera_config['controls']) self.configure_count += 1 - if False and "ScalerCrops" in self.camera_controls: + if "ScalerCrops" in self.camera_controls: par_crop = self.camera_controls["ScalerCrops"] full_fov = self.camera_controls["ScalerCrop"][1] scaler_crops = [par_crop[0] if camera_config["main"]["preserve_ar"] else full_fov]