mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
GCodeProcessor -> Load config data from gcode files generated by PrusaSlicer
This commit is contained in:
parent
11cf9a87f1
commit
16e282110d
4 changed files with 52 additions and 5 deletions
|
@ -115,7 +115,12 @@ void GCodeReader::parse_file(const std::string &file, callback_t callback)
|
|||
{
|
||||
std::ifstream f(file);
|
||||
std::string line;
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
m_parsing_file = true;
|
||||
while (m_parsing_file && std::getline(f, line))
|
||||
#else
|
||||
while (std::getline(f, line))
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
this->parse_line(line, callback);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue