Minor code refinements
This commit is contained in:
parent
d069591514
commit
657d19482b
1 changed files with 2 additions and 2 deletions
|
@ -248,7 +248,7 @@ std::vector<ExPolygons> extract_slices_from_sla_archive(
|
||||||
{
|
{
|
||||||
double incr, val, prev;
|
double incr, val, prev;
|
||||||
bool stop = false;
|
bool stop = false;
|
||||||
tbb::spin_mutex mutex;
|
tbb::spin_mutex mutex = {};
|
||||||
} st {100. / slices.size(), 0., 0.};
|
} st {100. / slices.size(), 0., 0.};
|
||||||
|
|
||||||
tbb::parallel_for(size_t(0), arch.images.size(),
|
tbb::parallel_for(size_t(0), arch.images.size(),
|
||||||
|
@ -375,7 +375,7 @@ void fill_iniconf(ConfMap &m, const SLAPrint &print)
|
||||||
bool hollow_en = false;
|
bool hollow_en = false;
|
||||||
auto it = print.objects().begin();
|
auto it = print.objects().begin();
|
||||||
while (!hollow_en && it != print.objects().end())
|
while (!hollow_en && it != print.objects().end())
|
||||||
hollow_en = hollow_en || (*it++)->config().hollowing_enable.getBool();
|
hollow_en = (*it++)->config().hollowing_enable;
|
||||||
|
|
||||||
m["hollow"] = hollow_en ? "1" : "0";
|
m["hollow"] = hollow_en ? "1" : "0";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue