From 1985fa13e10a6e5d2f2b9a7fb4955810b50db16e Mon Sep 17 00:00:00 2001 From: Dowon Date: Sat, 20 Jul 2024 17:27:38 +0900 Subject: [PATCH] fix(scripts): before process --- scripts/!adetailer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/!adetailer.py b/scripts/!adetailer.py index e47df57..43865e5 100644 --- a/scripts/!adetailer.py +++ b/scripts/!adetailer.py @@ -820,8 +820,7 @@ class AfterDetailerScript(scripts.Script): if need_call_process(p): with preserve_prompts(p): copy_p = copy(p) - if hasattr(p.scripts, "before_process"): - p.scripts.before_process(copy_p) + p.scripts.before_process(copy_p) p.scripts.process(copy_p) self.write_params_txt(params_txt_content)