Skip to content

Commit

Permalink
Fix prime tower when only raft has multi-material
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Nov 8, 2023
1 parent eeb93cf commit 961e100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PrimeTower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void PrimeTower::generateGroundpoly()
void PrimeTower::generatePaths(const SliceDataStorage& storage)
{
would_have_actual_tower
= storage.max_print_height_second_to_last_extruder >= 0; // Maybe it turns out that we don't need a prime tower after all because there are no layer switches.
= storage.max_print_height_second_to_last_extruder >= -Raft::getTotalExtraLayers() + 1; // Maybe it turns out that we don't need a prime tower after all because there are no layer switches.
if (would_have_actual_tower && enabled)
{
generatePaths_denseInfill();
Expand Down

0 comments on commit 961e100

Please sign in to comment.