mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 20:57:53 -06: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:
parent
0286c36f42
commit
7082e945b1
184 changed files with 1091 additions and 461 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue