Update nodes_model_loading.py

This commit is contained in:
kijai
2025-07-22 18:25:03 +03:00
parent 70fcdff3c5
commit eea896dace
+5 -1
View File
@@ -359,6 +359,10 @@ class WanVideoLoraSelect:
loras_list = []
strength = round(strength, 4)
if strength == 0.0:
if prev_lora is not None:
loras_list.extend(prev_lora)
return (loras_list,)
try:
lora_path = folder_paths.get_full_path("loras", lora)
@@ -477,7 +481,7 @@ class WanVideoLoraSelectMulti:
for lora_name, strength in lora_inputs:
# Skip if the LoRA is empty
if not lora_name or lora_name == "none":
if not lora_name or lora_name == "none" or strength == 0.0:
continue
lora = {