mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Revert "Fix Compile Warnings (#5963)"
This reverts commit b83e16dbdd.
Found regressions like auto orientation didn't work anymore after this change, revert it
This commit is contained in:
@@ -151,8 +151,8 @@ static std::vector<VolumeSlices> slice_volumes_inner(
|
||||
params_base.mode_below = params_base.mode;
|
||||
|
||||
// BBS
|
||||
// const size_t num_extruders = print_config.filament_diameter.size();
|
||||
// const bool is_mm_painted = num_extruders > 1 && std::any_of(model_volumes.cbegin(), model_volumes.cend(), [](const ModelVolume *mv) { return mv->is_mm_painted(); });
|
||||
const size_t num_extruders = print_config.filament_diameter.size();
|
||||
const bool is_mm_painted = num_extruders > 1 && std::any_of(model_volumes.cbegin(), model_volumes.cend(), [](const ModelVolume *mv) { return mv->is_mm_painted(); });
|
||||
// BBS: don't do size compensation when slice volume.
|
||||
// Will handle contour and hole size compensation seperately later.
|
||||
//const auto extra_offset = is_mm_painted ? 0.f : std::max(0.f, float(print_object_config.xy_contour_compensation.value));
|
||||
@@ -336,8 +336,7 @@ static std::vector<std::vector<ExPolygons>> slices_to_regions(
|
||||
};
|
||||
|
||||
// BBS
|
||||
// Orca: unused
|
||||
/* auto trim_overlap = [](ExPolygons& expolys_a, ExPolygons& expolys_b) {
|
||||
auto trim_overlap = [](ExPolygons& expolys_a, ExPolygons& expolys_b) {
|
||||
ExPolygons trimming_a;
|
||||
ExPolygons trimming_b;
|
||||
|
||||
@@ -362,7 +361,7 @@ static std::vector<std::vector<ExPolygons>> slices_to_regions(
|
||||
|
||||
expolys_a = diff_ex(expolys_a, trimming_a);
|
||||
expolys_b = diff_ex(expolys_b, trimming_b);
|
||||
}; */
|
||||
};
|
||||
|
||||
std::vector<RegionSlice> temp_slices;
|
||||
for (size_t zs_complex_idx = range.begin(); zs_complex_idx < range.end(); ++ zs_complex_idx) {
|
||||
|
||||
Reference in New Issue
Block a user