Skip to content

Commit

Permalink
Merge branch '5.3' into temp_multi_merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rburema committed Mar 1, 2023
2 parents b522512 + 3340592 commit 50fa699
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SkirtBrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ std::vector<SkirtBrim::Offset> SkirtBrim::generateBrimOffsetPlan(std::vector<Pol

for (int extruder_nr = 0; extruder_nr < extruder_count; extruder_nr++)
{
if (!extruder_is_used[extruder_nr] || (skirt_brim_extruder_nr >= 0 && extruder_nr != skirt_brim_extruder_nr))
if (!extruder_is_used[extruder_nr] || (skirt_brim_extruder_nr >= 0 && extruder_nr != skirt_brim_extruder_nr) || starting_outlines[extruder_nr].empty())
{
continue; // only include offsets for brim extruder
}
Expand Down Expand Up @@ -141,7 +141,7 @@ void SkirtBrim::generate()
std::vector<Offset> prime_brim_offsets_for_skirt = generatePrimeTowerBrimForSkirtAdhesionOffsetPlan();

constexpr LayerIndex layer_nr = 0;
const bool include_support = true;
constexpr bool include_support = true;
Polygons covered_area = storage.getLayerOutlines(layer_nr, include_support, /*include_prime_tower*/ true, /*external_polys_only*/ false);

std::vector<Polygons> allowed_areas_per_extruder(extruder_count);
Expand Down Expand Up @@ -468,7 +468,7 @@ Polygons SkirtBrim::getFirstLayerOutline(const int extruder_nr /* = -1 */)
constexpr coord_t smallest_line_length = 200;
constexpr coord_t largest_error_of_removed_point = 50;
first_layer_outline = Simplify(smallest_line_length, largest_error_of_removed_point, 0).polygon(first_layer_outline);
if (first_layer_outline.size() == 0)
if (first_layer_outline.empty())
{
spdlog::error("Couldn't generate skirt / brim! No polygons on first layer.");
}
Expand Down

0 comments on commit 50fa699

Please sign in to comment.