ENABLE_GCODE_VIEWER set as default in fff_print test and PrusaSlicer.cpp

This commit is contained in:
enricoturri1966 2020-11-12 15:01:59 +01:00
parent 8633e8f25c
commit 8c8ad70c58
3 changed files with 2 additions and 25 deletions

View file

@ -244,11 +244,7 @@ std::string gcode(Print & print)
boost::filesystem::path temp = boost::filesystem::unique_path();
print.set_status_silent();
print.process();
#if ENABLE_GCODE_VIEWER
print.export_gcode(temp.string(), nullptr, nullptr);
#else
print.export_gcode(temp.string(), nullptr);
#endif // ENABLE_GCODE_VIEWER
std::ifstream t(temp.string());
std::string str((std::istreambuf_iterator<char>(t)), std::istreambuf_iterator<char>());
boost::nowide::remove(temp.string().c_str());