vertical mosiacv addition alignment fic

This commit is contained in:
2ManyProjects 2026-01-08 21:24:11 -06:00
parent fc0f48eed4
commit f30158fd18

View file

@ -517,12 +517,12 @@ class StitchingScanner:
# stop_reason = 'min_dim'
# break
if abs(total_x) >= self.config.max_mosaic_width:
if abs(total_x) >= self.config.max_mosaic_width or total_x <= 0:
self.log(f"Max dimension reached ({self.config.max_mosaic_width}px)")
if direction == ScanDirection.RIGHT:
self.state.current_x = self.state.max_mosaic_width - w # At right edge
elif direction == ScanDirection.LEFT:
self.state.current_x = 0
elif direction == ScanDirection.LEFT:
self.state.current_x = self.state.max_mosaic_width - w # At right edge
self.log(f"Current X offset ({self.state.current_x}px)")
stop_reason = 'max_dim'
break