From 1304b315c753259ebdf782621ff78f84c1d03e9c Mon Sep 17 00:00:00 2001 From: "songwei.li" Date: Tue, 29 Jul 2025 11:34:11 +0800 Subject: [PATCH] FIX: Error in setting variable layer height Because the function in print.cpp mistakenly considers models with different variable layer height configurations to be the same, the layer height configurations of the copied objects are optimized and overwritten. Fixed function: auto is_print_object_the_same = [this](const PrintObject* object1, const PrintObject* object2) jira: STUDIO-13507 Change-Id: Ic4b3a479e8984b46a2f9557f65826951b8979646 (cherry picked from commit 2d5137914e9699c4fe9ddbbc76f13b85dbc3a1a9) --- src/libslic3r/Print.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index 93a4603380..7886344e76 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -2041,6 +2041,8 @@ void Print::process(long long *time_cost_with_cache, bool use_cache) } //if (!object1->config().equals(object2->config())) // return false; + if (model_obj1->layer_height_profile.get() != model_obj2->layer_height_profile.get()) + return false; if (model_obj1->config.get() != model_obj2->config.get()) return false; return true;