Fixed OSX build

This commit is contained in:
YuSanka 2019-02-13 08:44:42 +01:00
parent c04be58648
commit 589ac889a3

View file

@ -8,6 +8,7 @@
#include <numeric> #include <numeric>
#include <tbb/parallel_for.h> #include <tbb/parallel_for.h>
#include <boost/filesystem/path.hpp>
#include <boost/log/trivial.hpp> #include <boost/log/trivial.hpp>
//#include <tbb/spin_mutex.h>//#include "tbb/mutex.h" //#include <tbb/spin_mutex.h>//#include "tbb/mutex.h"
@ -1032,6 +1033,8 @@ bool SLAPrint::invalidate_state_by_config_options(const std::vector<t_config_opt
void SLAPrint::fill_statistics() void SLAPrint::fill_statistics()
{ {
// Estimated printing time
// A layers count o the highest object
int max_layers_cnt = 0; int max_layers_cnt = 0;
for (SLAPrintObject * po : m_objects) { for (SLAPrintObject * po : m_objects) {
if (max_layers_cnt < po->get_slice_index().size()) if (max_layers_cnt < po->get_slice_index().size())