From 47f51d1eadf63a457d69ce033517f06b18945210 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Tue, 9 Jan 2024 09:30:12 +0100 Subject: [PATCH] Fix debug build --- src/raft.cpp | 4 +++- src/sliceDataStorage.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/raft.cpp b/src/raft.cpp index edc5c51fb7..9bb181cf5d 100644 --- a/src/raft.cpp +++ b/src/raft.cpp @@ -17,7 +17,9 @@ namespace cura void Raft::generate(SliceDataStorage& storage) { - assert(storage.raftOutline.size() == 0 && "Raft polygon isn't generated yet, so should be empty!"); + assert( + storage.raftBaseOutline.size() == 0 && storage.raftInterfaceOutline.size() == 0 && storage.raftSurfaceOutline.size() == 0 + && "Raft polygon isn't generated yet, so should be empty!"); const Settings& settings = Application::getInstance().current_slice_->scene.current_mesh_group->settings.get("raft_base_extruder_nr").settings_; constexpr bool include_support = true; constexpr bool dont_include_prime_tower = false; // Prime tower raft will be handled separately in 'storage.primeRaftOutline'; see below. diff --git a/src/sliceDataStorage.cpp b/src/sliceDataStorage.cpp index bb8182aaee..24c4be9bda 100644 --- a/src/sliceDataStorage.cpp +++ b/src/sliceDataStorage.cpp @@ -297,7 +297,7 @@ Polygons use_current_extruder_for_raft |= extruder_nr == int(mesh_group_settings.get("raft_surface_extruder_nr").extruder_nr_); break; default: - assert(false << "unreachable due to outer switch statement"); + assert(false && "unreachable due to outer switch statement"); return Polygons(); }