fix: adetailer_xyz rename

This commit is contained in:
Bingsu
2023-10-07 14:22:41 +09:00
parent f1535afd7c
commit b0e2d1febd

View File

@@ -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(