mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-03 17:05:43 +02:00
Fix build on win and rpi
This commit is contained in:
@@ -128,7 +128,7 @@ static std::vector<SupportPointGenerator::MyLayer> make_layers(
|
||||
//const float pixel_area = pow(wxGetApp().preset_bundle->project_config.option<ConfigOptionFloat>("display_width") / wxGetApp().preset_bundle->project_config.option<ConfigOptionInt>("display_pixels_x"), 2.f); //
|
||||
const float pixel_area = pow(0.047f, 2.f);
|
||||
|
||||
ccr_par::for_each(0ul, layers.size(),
|
||||
ccr_par::for_each(size_t(0), layers.size(),
|
||||
[&layers, &slices, &heights, pixel_area, throw_on_cancel](size_t layer_id)
|
||||
{
|
||||
if ((layer_id % 8) == 0)
|
||||
@@ -153,7 +153,7 @@ static std::vector<SupportPointGenerator::MyLayer> make_layers(
|
||||
}, 32 /*gransize*/);
|
||||
|
||||
// Calculate overlap of successive layers. Link overlapping islands.
|
||||
ccr_par::for_each(1ul, layers.size(),
|
||||
ccr_par::for_each(size_t(1), layers.size(),
|
||||
[&layers, &heights, throw_on_cancel] (size_t layer_id)
|
||||
{
|
||||
if ((layer_id % 2) == 0)
|
||||
|
||||
@@ -748,7 +748,7 @@ void SupportTreeBuildsteps::filter()
|
||||
}
|
||||
};
|
||||
|
||||
ccr::for_each(0ul, filtered_indices.size(),
|
||||
ccr::for_each(size_t(0), filtered_indices.size(),
|
||||
[this, &filterfn, &filtered_indices] (size_t i) {
|
||||
filterfn(filtered_indices[i], i, m_cfg.head_back_radius_mm);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user