Skip to content

Commit deef085

Browse files
committed
Fix incorrect sampling level being used for renders
1 parent c5fc4f6 commit deef085

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mousetracks2/gui/main_window.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,6 +1357,7 @@ def get_render_layer_data(self, file_path: str | None = None) -> Iterator[ipc.Re
13571357
lock_aspect = self.ui.lock_aspect.isChecked()
13581358

13591359
if file_path is None:
1360+
sampling = self.ui.thumbnail_sampling.value()
13601361
width = self.ui.thumbnail.width()
13611362
height = self.ui.thumbnail.height()
13621363

@@ -1381,6 +1382,7 @@ def get_render_layer_data(self, file_path: str | None = None) -> Iterator[ipc.Re
13811382
height = min(height, custom_height)
13821383

13831384
else:
1385+
sampling = self.ui.sampling.value()
13841386
width = custom_width
13851387
height = custom_height
13861388

@@ -1399,7 +1401,7 @@ def get_render_layer_data(self, file_path: str | None = None) -> Iterator[ipc.Re
13991401
file_path=file_path,
14001402
colour_map=self.render_colour,
14011403
padding=self.padding,
1402-
sampling=self.ui.thumbnail_sampling.value(),
1404+
sampling=sampling,
14031405
contrast=self.contrast,
14041406
clipping=self.clipping,
14051407
blur=self.blur,

0 commit comments

Comments
 (0)