Skip to content

Commit

Permalink
Force prime tower base for raft
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Oct 13, 2023
1 parent ae0dcd2 commit 9e958a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/PrimeTower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ void PrimeTower::generatePaths_denseInfill()
const coord_t layer_height = mesh_group_settings.get<coord_t>("layer_height");
const bool base_enabled = mesh_group_settings.get<bool>("prime_tower_brim_enable");
const coord_t base_extra_radius = scene.settings.get<coord_t>("prime_tower_base_size");
const coord_t base_height = scene.settings.get<coord_t>("prime_tower_base_height");
const bool has_raft = mesh_group_settings.get<EPlatformAdhesion>("adhesion_type") == EPlatformAdhesion::RAFT;
const coord_t base_height = std::max(scene.settings.get<coord_t>("prime_tower_base_height"), has_raft ? layer_height : 0);
const int base_curve_magnitude = mesh_group_settings.get<int>("prime_tower_base_curve_magnitude");
const coord_t line_width = scene.extruders[extruder_order.front()].settings.get<coord_t>("prime_tower_line_width");

Expand Down Expand Up @@ -180,7 +181,7 @@ void PrimeTower::generatePaths_denseInfill()
}

// The most outside extruder is used for the base
if (extruder_nr == extruder_order.front() && base_enabled && base_extra_radius > 0 && base_height > 0)
if (extruder_nr == extruder_order.front() && (base_enabled || has_raft) && base_extra_radius > 0 && base_height > 0)
{
for (coord_t z = 0; z < base_height; z += layer_height)
{
Expand Down

0 comments on commit 9e958a9

Please sign in to comment.