From 854c98d7fbc34a02acf3e70d730aa93ffedc2919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=90=D0=BD=D1=82=D0=BE?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Mon, 2 Jan 2023 20:57:39 +0300 Subject: [PATCH] Fix job count --- scripts/ultimate-upscale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ultimate-upscale.py b/scripts/ultimate-upscale.py index f1e678a..601836c 100644 --- a/scripts/ultimate-upscale.py +++ b/scripts/ultimate-upscale.py @@ -182,7 +182,7 @@ class Script(scripts.Script): seams = 0 if seam_pass_enabled: seams = rows - 1 + cols - 1 - + state.job_count = ((rows*cols) if redraw_enabled else 0) + (seams if seam_pass_enabled else 0) result_images = [] result_image = upscaled_img if redraw_enabled: