Minor code refinements

This commit is contained in:
tamasmeszaros 2021-04-21 16:49:11 +02:00
parent d069591514
commit 657d19482b

View file

@ -248,7 +248,7 @@ std::vector<ExPolygons> extract_slices_from_sla_archive(
{
double incr, val, prev;
bool stop = false;
tbb::spin_mutex mutex;
tbb::spin_mutex mutex = {};
} st {100. / slices.size(), 0., 0.};
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;
auto it = print.objects().begin();
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";