From 565812b18b3ddfd635600da8881660fdcfa42a06 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Mon, 2 Feb 2026 16:17:05 +0100 Subject: [PATCH] Auto-append .latent extension if missing on save Co-Authored-By: Claude Opus 4.5 --- nodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodes.py b/nodes.py index 65c00a8..96c7471 100644 --- a/nodes.py +++ b/nodes.py @@ -21,6 +21,8 @@ class SaveLatentAbsolute: def save(self, samples, path): path = os.path.expanduser(path) + if not path.endswith(".latent"): + path += ".latent" os.makedirs(os.path.dirname(path), exist_ok=True) tensors = {}