fix: loop roll failures reach the guard (recorded, dropped, call rerun); sampler keeps an empty fault record

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
digital-garbage
2026-10-03 11:34:36 +03:00
co-authored by Claude Sonnet 5.5
parent 6ac6acf612
commit 397f36014a
3 changed files with 36 additions and 27 deletions
+5 -2
View File
@@ -102,8 +102,11 @@ class FunPackSampler(io.ComfyNode):
# its cache -- so it is emptied here rather than trusted to be fresh.
# Otherwise a modifier dropped in one generation stays dropped in every
# later one, with nothing said.
dropped = (getattr(model, "model_options", {}).get("funpack_dropped") or getattr(model, "funpack_dropped", None)
or patching.Dropped())
dropped = getattr(model, "model_options", {}).get("funpack_dropped")
if dropped is None:
dropped = getattr(model, "funpack_dropped", None)
if dropped is None:
dropped = patching.Dropped()
dropped.clear()
latent = latent.copy()