From 533aa18897f76d95034c7c31a665450deb648b4f Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Wed, 12 Aug 2026 17:13:20 +0800 Subject: [PATCH] make preview sticky for sdcpp --- otherarch/sdcpp/sdtype_adapter.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/otherarch/sdcpp/sdtype_adapter.cpp b/otherarch/sdcpp/sdtype_adapter.cpp index 05a154706..8c66b49ea 100644 --- a/otherarch/sdcpp/sdtype_adapter.cpp +++ b/otherarch/sdcpp/sdtype_adapter.cpp @@ -1787,7 +1787,7 @@ static void step_callback(int step, int frame_count, sd_image_t* image, bool is_ } geninfo.gendata.step = step; geninfo.gendata.step_time = step_time; - should_encode_preview = !is_noisy && geninfo.preview_requested; + should_encode_preview = !is_noisy && geninfo.preview_enabled; } if (!should_encode_preview) { @@ -1812,12 +1812,9 @@ static void step_callback(int step, int frame_count, sd_image_t* image, bool is_ { std::lock_guard lock(geninfo.mux); - geninfo.preview_requested = false; - geninfo.preview_enabled = false; geninfo.gendata.step = step; geninfo.gendata.step_time = step_time; geninfo.gendata.preview = preview; - set_preview_images(0); } }