From ef54f01a82987b932e24442dc842678c8e99281a Mon Sep 17 00:00:00 2001 From: MarcusNyne <69087098+MarcusNyne@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:55:24 -0400 Subject: [PATCH] skip bug in _find_last_index() --- scripts/!adetailer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/!adetailer.py b/scripts/!adetailer.py index ccc8013..fc16c8f 100644 --- a/scripts/!adetailer.py +++ b/scripts/!adetailer.py @@ -970,7 +970,7 @@ def postprocess_image(self, p, pp: PPImage, *args_): def _find_last_index(self, arg_list): last_index = 0 for n, args in enumerate(arg_list): - if args.need_skip() and args.ad_solo_generation is False: + if not args.need_skip() and args.ad_solo_generation is False: last_index = n return last_index