fix unapply texture tiling

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-06-26 09:30:15 -04:00
parent 931650c43f
commit 2714d29993
3 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -551,7 +551,8 @@ def set_latents(p):
def apply_circular(enable: bool, model):
if not hasattr(model, 'unet') or not hasattr(model, 'vae'):
return
if getattr(model, 'texture_tiling', False) == enable:
current = getattr(model, 'texture_tiling', 0)
if isinstance(current, bool) and current == enable:
return
try:
i = 0