From a3dcc40f2317908271f7a2582f0e725730cd6ca1 Mon Sep 17 00:00:00 2001 From: "salt.wei" Date: Thu, 13 Oct 2022 11:29:32 +0800 Subject: [PATCH] ENH: fix compiling issue in debug mode As title. Signed-off-by: salt.wei Change-Id: I1fa86effc355ee350726fc81eef89f8a43bce89a --- src/libslic3r/PrintObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/PrintObject.cpp b/src/libslic3r/PrintObject.cpp index 42a0c10b4..7efc9deb8 100644 --- a/src/libslic3r/PrintObject.cpp +++ b/src/libslic3r/PrintObject.cpp @@ -761,7 +761,7 @@ bool PrintObject::invalidate_state_by_config_options( #if HAS_LIGHTNING_INFILL const auto *old_fill_pattern = old_config.option>(opt_key); const auto *new_fill_pattern = new_config.option>(opt_key); - assert(old_infill && new_infill); + assert(old_fill_pattern && new_fill_pattern); // We need to recalculate infill surfaces when infill_only_where_needed is enabled, and we are switching from // the Lightning infill to another infill or vice versa. if (PrintObject::infill_only_where_needed && (new_fill_pattern->value == ipLightning || old_fill_pattern->value == ipLightning))