From e7b7c1a6a68407596a6f04e9e0295e02437f7578 Mon Sep 17 00:00:00 2001 From: cubiq Date: Wed, 29 May 2024 12:34:35 +0200 Subject: [PATCH] make LUT files case insensitive --- .gitignore | 1 + image.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7ac8206..281d761 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /__pycache__/ /luts/*.cube +/luts/*.CUBE /fonts/*.ttf /fonts/*.otf diff --git a/image.py b/image.py index f1e8869..2a6f87f 100644 --- a/image.py +++ b/image.py @@ -733,7 +733,7 @@ class ImageApplyLUT: return { "required": { "image": ("IMAGE",), - "lut_file": ([f for f in os.listdir(LUTS_DIR) if f.endswith('.cube')], ), + "lut_file": ([f for f in os.listdir(LUTS_DIR) if f.lower().endswith('.cube')], ), "log_colorspace": ("BOOLEAN", { "default": False }), "clip_values": ("BOOLEAN", { "default": False }), "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.1 }),