ENABLE_GCODE_VIEWER set as default in fff_print test and PrusaSlicer.cpp
This commit is contained in:
parent
8633e8f25c
commit
8c8ad70c58
3 changed files with 2 additions and 25 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue