fix: prevent the accumulation of model patches when 'xy_capsule' is used only for 'x'

This commit is contained in:
Dr.Lt.Data
2023-11-04 20:39:57 +09:00
parent 2e0145c3e6
commit 1121fa5fbf

View File

@@ -1503,9 +1503,11 @@ class TSC_KSampler:
elif X_type != "Nothing" and Y_type != "Nothing":
for Y_index, Y in enumerate(Y_value):
if Y_type == "XY_Capsule" and X_type == "XY_Capsule":
if Y_type == "XY_Capsule" or X_type == "XY_Capsule":
model, clip, refiner_model, refiner_clip = \
clone_or_none(original_model, original_clip, original_refiner_model, original_refiner_clip)
if Y_type == "XY_Capsule" and X_type == "XY_Capsule":
Y.set_x_capsule(X)
# Define Y parameters and generate labels