Skip to content

Commit adb3513

Browse files
committed
core: Re-enable rpi::ScalerCrops control
Handling this control was disabled in a previous patch, re-enable it. Signed-off-by: Naushir Patuck <[email protected]>
1 parent d919c7f commit adb3513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

picamera2/picamera2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ def configure_(self, camera_config="preview") -> None:
11221122
self.controls = Controls(self, controls=self.camera_config['controls'])
11231123
self.configure_count += 1
11241124

1125-
if False and "ScalerCrops" in self.camera_controls:
1125+
if "ScalerCrops" in self.camera_controls:
11261126
par_crop = self.camera_controls["ScalerCrops"]
11271127
full_fov = self.camera_controls["ScalerCrop"][1]
11281128
scaler_crops = [par_crop[0] if camera_config["main"]["preserve_ar"] else full_fov]

0 commit comments

Comments
 (0)