Removed Print.pm,
ported execution of post processing scripts into C++ (WIP, waits for update of boost::system module on our build server) Removed other mention of the "Controller".
This commit is contained in:
parent
bb7f504296
commit
d934b63424
19 changed files with 124 additions and 126 deletions
xs/src/libslic3r
|
@ -13,6 +13,7 @@
|
|||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/algorithm/string/find.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/log/trivial.hpp>
|
||||
|
||||
#include <boost/nowide/iostream.hpp>
|
||||
|
@ -418,14 +419,9 @@ void GCode::do_export(Print *print, const char *path, GCodePreviewData *preview_
|
|||
{
|
||||
PROFILE_CLEAR();
|
||||
|
||||
if (print->is_step_done(psGCodeExport)) {
|
||||
// Does the file exist? If so, we hope that it is still valid.
|
||||
FILE *f = boost::nowide::fopen(path, "r");
|
||||
if (f != nullptr) {
|
||||
::fclose(f);
|
||||
return;
|
||||
}
|
||||
}
|
||||
// Does the file exist? If so, we hope that it is still valid.
|
||||
if (print->is_step_done(psGCodeExport) && boost::filesystem::exists(boost::filesystem::path(path)))
|
||||
return;
|
||||
|
||||
print->set_started(psGCodeExport);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue