Avoid garbage error message when generating sla preview
This commit is contained in:
parent
9eed8e4892
commit
49fbf4ccce
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ void SLAPrint::Steps::generate_preview(SLAPrintObject &po, SLAPrintObjectStep st
|
|||
|
||||
bench.stop();
|
||||
|
||||
if (!m.empty())
|
||||
if (!po.m_preview_meshes[step]->empty())
|
||||
BOOST_LOG_TRIVIAL(trace) << "Preview gen took: " << bench.getElapsedSec();
|
||||
else
|
||||
BOOST_LOG_TRIVIAL(error) << "Preview failed!";
|
||||
|
|
Loading…
Reference in a new issue