From 493a8f5cea3bd005e8e78c5dedc79f491a2bfe1f Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Thu, 10 Nov 2022 15:20:23 +0800 Subject: [PATCH] FIX: variable layer height not show error in error case Change-Id: Ia989f9b7b141c392468a633ec0beeb9a4f379b62 --- src/libslic3r/Print.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index 32e6e2e2b..9e32886ad 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -958,8 +958,8 @@ StringObjectException Print::validate(StringObjectException *warning, Polygons* const coordf_t eps = 0.5 * EPSILON; // layers closer than EPSILON will be merged later. Let's make // this check a bit more sensitive to make sure we never consider two different layers as one. while (i < layer_height_profiles[idx_object].size() && i < layer_height_profiles[tallest_object_idx].size()) { - if (i % 2 == 0 && layer_height_profiles[tallest_object_idx][i] > layer_height_profiles[idx_object][layer_height_profiles[idx_object].size() - 2]) - break; + //if (i % 2 == 0 && layer_height_profiles[tallest_object_idx][i] > layer_height_profiles[idx_object][layer_height_profiles[idx_object].size() - 2]) + // break; if (std::abs(layer_height_profiles[idx_object][i] - layer_height_profiles[tallest_object_idx][i]) > eps) return {L("The prime tower is only supported if all objects have the same variable layer height")}; ++i;