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)
This commit is contained in:
songwei.li
2025-07-29 11:34:11 +08:00
committed by Noisyfox
parent 641577c835
commit 1304b315c7

View File

@@ -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;