Skip to content

Commit

Permalink
Remove fix_slicing_errors because it makes no sense (#2370)
Browse files Browse the repository at this point in the history
this also fixes #2344
  • Loading branch information
Noisyfox authored Oct 12, 2023
1 parent a178b96 commit fc0067c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libslic3r/PrintObjectSlice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ void reGroupingLayerPolygons(std::vector<groupedVolumeSlices>& gvss, ExPolygons
}
}

/*
std::string fix_slicing_errors(PrintObject* object, LayerPtrs &layers, const std::function<void()> &throw_if_canceled, int &firstLayerReplacedBy)
{
std::string error_msg;//BBS
Expand Down Expand Up @@ -777,6 +778,7 @@ std::string fix_slicing_errors(PrintObject* object, LayerPtrs &layers, const std
return error_msg;
}
*/

void groupingVolumesForBrim(PrintObject* object, LayerPtrs& layers, int firstLayerReplacedBy)
{
Expand Down Expand Up @@ -813,7 +815,7 @@ void PrintObject::slice()
m_print->throw_if_canceled();
int firstLayerReplacedBy = 0;

#if 1
#if 0
// Fix the model.
//FIXME is this the right place to do? It is done repeateadly at the UI and now here at the backend.
std::string warning = fix_slicing_errors(this, m_layers, [this](){ m_print->throw_if_canceled(); }, firstLayerReplacedBy);
Expand Down

0 comments on commit fc0067c

Please sign in to comment.