Skip to content

Commit

Permalink
Fix debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Jan 9, 2024
1 parent 280612a commit 47f51d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/raft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ExtruderTrain&>("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.
Expand Down
2 changes: 1 addition & 1 deletion src/sliceDataStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Polygons
use_current_extruder_for_raft |= extruder_nr == int(mesh_group_settings.get<ExtruderTrain&>("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();
}

Expand Down

0 comments on commit 47f51d1

Please sign in to comment.