mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 11:47:54 -06:00
fix a bug that new overhang slowdown algo didn't work properly for cloned objects
This commit is contained in:
parent
04fe631245
commit
c8687989e5
2 changed files with 3 additions and 3 deletions
|
@ -2698,7 +2698,7 @@ GCode::LayerResult GCode::process_layer(
|
||||||
Skirt::make_skirt_loops_per_extruder_other_layers(print, layer_tools, m_skirt_done);
|
Skirt::make_skirt_loops_per_extruder_other_layers(print, layer_tools, m_skirt_done);
|
||||||
|
|
||||||
for (const auto& layer_to_print : layers) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -250,10 +250,10 @@ class ExtrusionQualityEstimator
|
||||||
public:
|
public:
|
||||||
void set_current_object(const PrintObject *object) { current_object = object; }
|
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;
|
if (layer == nullptr) return;
|
||||||
const PrintObject *object = layer->object();
|
const PrintObject *object = obj;
|
||||||
prev_layer_boundaries[object] = next_layer_boundaries[object];
|
prev_layer_boundaries[object] = next_layer_boundaries[object];
|
||||||
next_layer_boundaries[object] = AABBTreeLines::LinesDistancer<Linef>{to_unscaled_linesf(layer->lslices)};
|
next_layer_boundaries[object] = AABBTreeLines::LinesDistancer<Linef>{to_unscaled_linesf(layer->lslices)};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue