Skip to content

Commit

Permalink
Workaround for when the toolpaths are empty at this point.
Browse files Browse the repository at this point in the history
done as part of CURA-9399
  • Loading branch information
rburema committed Jun 19, 2024
1 parent 047aca7 commit 5c24075
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/SkeletalTrapezoidation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2250,7 +2250,14 @@ void SkeletalTrapezoidation::generateLocalMaximaSingleBeads()
{
const coord_t width = width_accumulator / accumulator_count;
local_maxima_accumulator = local_maxima_accumulator / accumulator_count;
generated_toolpaths[0].clear();
if (generated_toolpaths.empty())
{
generated_toolpaths.emplace_back();
}
else
{
generated_toolpaths[0].clear();
}
addCircleToToolpath(local_maxima_accumulator, width, 0);
}
}
Expand Down

0 comments on commit 5c24075

Please sign in to comment.