Skip to content

Commit

Permalink
fix a bug that new overhang slowdown algo didn't work properly for cl…
Browse files Browse the repository at this point in the history
…oned objects
  • Loading branch information
SoftFever committed Feb 20, 2023
1 parent 04fe631 commit c868798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libslic3r/GCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2698,7 +2698,7 @@ GCode::LayerResult GCode::process_layer(
Skirt::make_skirt_loops_per_extruder_other_layers(print, layer_tools, m_skirt_done);

for (const auto& layer_to_print : layers) {
m_extrusion_quality_estimator.prepare_for_new_layer(layer_to_print.object_layer);
m_extrusion_quality_estimator.prepare_for_new_layer(layer_to_print.original_object, layer_to_print.object_layer);
}


Expand Down
4 changes: 2 additions & 2 deletions src/libslic3r/GCode/ExtrusionProcessor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ class ExtrusionQualityEstimator
public:
void set_current_object(const PrintObject *object) { current_object = object; }

void prepare_for_new_layer(const Layer *layer)
void prepare_for_new_layer(const PrintObject * obj, const Layer *layer)
{
if (layer == nullptr) return;
const PrintObject *object = layer->object();
const PrintObject *object = obj;
prev_layer_boundaries[object] = next_layer_boundaries[object];
next_layer_boundaries[object] = AABBTreeLines::LinesDistancer<Linef>{to_unscaled_linesf(layer->lslices)};
}
Expand Down

0 comments on commit c868798

Please sign in to comment.