mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 04:15:51 +08:00
For consistency, move prerequisites after the state guard
This commit is contained in:
parent
c0465d0434
commit
75670c6819
@ -335,12 +335,12 @@ PrintObject::has_support_material() const
|
||||
void
|
||||
PrintObject::detect_surfaces_type()
|
||||
{
|
||||
// prerequisites
|
||||
this->slice();
|
||||
|
||||
if (this->state.is_done(posDetectSurfaces)) return;
|
||||
this->state.set_started(posDetectSurfaces);
|
||||
|
||||
// prerequisites
|
||||
this->slice();
|
||||
|
||||
parallelize<Layer*>(
|
||||
std::queue<Layer*>(std::deque<Layer*>(this->layers.begin(), this->layers.end())), // cast LayerPtrs to std::queue<Layer*>
|
||||
boost::bind(&Slic3r::Layer::detect_surfaces_type, _1),
|
||||
@ -1187,12 +1187,12 @@ PrintObject::make_perimeters()
|
||||
void
|
||||
PrintObject::infill()
|
||||
{
|
||||
// prerequisites
|
||||
this->prepare_infill();
|
||||
|
||||
if (this->state.is_done(posInfill)) return;
|
||||
this->state.set_started(posInfill);
|
||||
|
||||
// prerequisites
|
||||
this->prepare_infill();
|
||||
|
||||
parallelize<Layer*>(
|
||||
std::queue<Layer*>(std::deque<Layer*>(this->layers.begin(), this->layers.end())), // cast LayerPtrs to std::queue<Layer*>
|
||||
boost::bind(&Slic3r::Layer::make_fills, _1),
|
||||
|
Loading…
x
Reference in New Issue
Block a user