From 7e3c6471ff0ed65a3b2a8d516eda0879747d1325 Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Sun, 1 Dec 2024 12:27:16 -0500 Subject: [PATCH] official/apply_camera_sytle - ensure style is only applied to raw images. Fixed comment. --- official/apply_camera_style.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/official/apply_camera_style.lua b/official/apply_camera_style.lua index c75974b..aac49d1 100644 --- a/official/apply_camera_style.lua +++ b/official/apply_camera_style.lua @@ -64,7 +64,7 @@ local CS = dt.configuration.running_os == "windows" and "&" or ";" -- A P I C H E C K -- - - - - - - - - - - - - - - - - - - - - - - - -du.check_min_api_version("9.4.0", MODULE) -- styles use filmic V7 which appeared in darktable 4.4 +du.check_min_api_version("9.4.0", MODULE) -- camera styles added to darktable 5.0 -- - - - - - - - - - - - - - - - - - - - - - - - - - @@ -477,7 +477,9 @@ dt.register_event(MODULE, "shortcut", dt.register_event(MODULE, "post-import-image", function(event, image) - table.insert(acs.imported_images, image) + if image.is_raw then + table.insert(acs.imported_images, image) + end end )