Skip to content

Commit f124edf

Browse files
committed
Remove temporary workaround that accidentally crept into the code
At one point scaler crops were so broken that this was necessary. Signed-off-by: David Plowman <[email protected]>
1 parent e1b4880 commit f124edf

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
@@ -1148,7 +1148,7 @@ def configure_(self, camera_config="preview"):
11481148
self.controls = Controls(self, controls=self.camera_config['controls'])
11491149
self.configure_count += 1
11501150

1151-
if False and "ScalerCrops" in self.camera_controls:
1151+
if "ScalerCrops" in self.camera_controls:
11521152
par_crop = self.camera_controls["ScalerCrops"]
11531153
full_fov = self.camera_controls["ScalerCrop"][1]
11541154
scaler_crops = [par_crop[0] if camera_config["main"]["preserve_ar"] else full_fov]

0 commit comments

Comments
 (0)