From b0e2d1febda92daf25bb73cd8a586c71690b85dd Mon Sep 17 00:00:00 2001 From: Bingsu Date: Sat, 7 Oct 2023 14:22:41 +0900 Subject: [PATCH] fix: adetailer_xyz rename --- scripts/!adetailer.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/!adetailer.py b/scripts/!adetailer.py index 006d3af..103b245 100644 --- a/scripts/!adetailer.py +++ b/scripts/!adetailer.py @@ -214,8 +214,8 @@ class AfterDetailerScript(scripts.Script): raise ValueError(message) self.check_skip_img2img(p, *args_) - if hasattr(p, "adetailer_xyz"): - args[0] = {**args[0], **p.adetailer_xyz} + if hasattr(p, "_ad_xyz"): + args[0] = {**args[0], **p._ad_xyz} all_inputs = [] @@ -788,9 +788,9 @@ def make_axis_on_xyz_grid(): samplers = [sampler.name for sampler in all_samplers] def set_value(p, x, xs, *, field: str): - if not hasattr(p, "adetailer_xyz"): - p.adetailer_xyz = {} - p.adetailer_xyz[field] = x + if not hasattr(p, "_ad_xyz"): + p._ad_xyz = {} + p._ad_xyz[field] = x axis = [ xyz_grid.AxisOption(