This commit is contained in:
2ManyProjects 2026-01-10 03:31:41 -06:00
parent 91d95561f6
commit 4ad089c698

View file

@ -417,7 +417,6 @@ class StitchingScanner:
strip_end = min(w, append_width + BLEND_WIDTH) strip_end = min(w, append_width + BLEND_WIDTH)
new_strip = frame[:, :strip_end] new_strip = frame[:, :strip_end]
x_offset = int(self.state.mosaic_width - abs(self.state.current_x) - new_strip.shape[1]) x_offset = int(self.state.mosaic_width - abs(self.state.current_x) - new_strip.shape[1])
x_offset = max(0, x_offset)
self.mosaic = self._blend_horizontal_at_y( self.mosaic = self._blend_horizontal_at_y(
self.mosaic, new_strip, BLEND_WIDTH, append_right=False, x_offset=x_offset, y_offset=y_offset) self.mosaic, new_strip, BLEND_WIDTH, append_right=False, x_offset=x_offset, y_offset=y_offset)