diff options
author | Vojtech Bubnik <bubnikv@gmail.com> | 2021-05-10 10:32:24 +0300 |
---|---|---|
committer | Vojtech Bubnik <bubnikv@gmail.com> | 2021-05-10 10:32:24 +0300 |
commit | 5828decfc7f3776b000fc16e6401dc649884707c (patch) | |
tree | fef6778d41040423db8bc2bde3f461040defb2cd /src/libslic3r/PrintObject.cpp | |
parent | f11b9a5b6a9758309e2c656b9475c475873ae108 (diff) |
Fixing multi-material printing after recent refactoring (d21b9aa to 1c6333e)
Diffstat (limited to 'src/libslic3r/PrintObject.cpp')
-rw-r--r-- | src/libslic3r/PrintObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libslic3r/PrintObject.cpp b/src/libslic3r/PrintObject.cpp index 8fefd4beb..2987b7a23 100644 --- a/src/libslic3r/PrintObject.cpp +++ b/src/libslic3r/PrintObject.cpp @@ -1745,7 +1745,7 @@ void PrintObject::_slice(const std::vector<coordf_t> &layer_height_profile) } // Make sure all layers contain layer region objects for all regions. for (size_t region_id = 0; region_id < m_region_volumes.size(); ++ region_id) - layer->add_region(&this->print()->get_print_region(region_id)); + layer->add_region(&this->printing_region(region_id)); prev = layer; } } @@ -1793,7 +1793,7 @@ void PrintObject::_slice(const std::vector<coordf_t> &layer_height_profile) if (spiral_vase) { // Slice the bottom layers with SlicingMode::Regular. // This needs to be in sync with LayerRegion::make_perimeters() spiral_vase! - const PrintRegionConfig &config = this->print()->get_print_region(region_id).config(); + const PrintRegionConfig &config = this->printing_region(region_id).config(); slicing_mode_normal_below_layer = size_t(config.bottom_solid_layers.value); for (; slicing_mode_normal_below_layer < slice_zs.size() && slice_zs[slicing_mode_normal_below_layer] < config.bottom_solid_min_thickness - EPSILON; ++ slicing_mode_normal_below_layer); |