mirror of
https://github.com/idrirap/ComfyUI-Lora-Auto-Trigger-Words.git
synced 2026-03-21 21:22:12 -03:00
fix: broken preview when using both enable preview and override_lora_name
This commit is contained in:
2
utils.py
2
utils.py
@@ -31,6 +31,8 @@ def copy_preview_to_temp(file_name):
|
||||
lora_less = "/".join(file_name.split("/")[1:])
|
||||
|
||||
file_path = folder_paths.get_full_path("loras", lora_less)
|
||||
if file_path is None:
|
||||
return None, None
|
||||
|
||||
temp_path = folder_paths.get_temp_directory()
|
||||
preview_path = os.path.join(temp_path, "lora_preview")
|
||||
|
||||
Reference in New Issue
Block a user