From 7f025b9a18c366a51860460fae8fd3d1168cebe2 Mon Sep 17 00:00:00 2001 From: Meisoftcoltd <38667978+Meisoftcoltd@users.noreply.github.com> Date: Sat, 9 May 2026 11:27:29 +0000 Subject: [PATCH] fix: remove destructive graph surgery in SequentialLoopTrigger Replaced destructive `del inputs["on_true"]` and `del inputs["on_false"]` with simple state update `inputs["is_final_cycle"] = is_next_final` to rely on MasterSwitch's native lazy evaluation (`check_lazy_status`), fixing a `NodeInputError` bug during looping. --- loop.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/loop.py b/loop.py index de2a07a..4648d61 100644 --- a/loop.py +++ b/loop.py @@ -266,18 +266,12 @@ class SequentialLoopTrigger: is_next_final = (global_accumulated_frames + estimated_chunk) >= global_source_frame_count for inputs in master_switches: - print(f" -> 🔀 [Cirugía de Grafo] Mutando Master Switch para Ciclo {next_loop}...") + print(f" -> 🔀 [Cirugía de Grafo Segura] Mutando Master Switch para Ciclo {next_loop}...") # Sobrescribimos el cable que viene del Stitcher por un booleano estático inputs["is_final_cycle"] = is_next_final - if is_next_final: - if "on_false" in inputs: - del inputs["on_false"] - print(f" ✂️ Cable 'on_false' eliminado (Ahorro de VRAM en ruta inactiva).") - else: - if "on_true" in inputs: - del inputs["on_true"] - print(f" ✂️ Cable 'on_true' eliminado (Ruta pesada desconectada).") + # 🛑 Eliminada la destrucción de cables (del inputs["on_true"/"on_false"]) + # Confiamos en la Evaluación Perezosa Nativa del MasterSwitch. print(f" -> 🎲 Semillas mutadas: {m_seeds}")