Several minor improvements and fixed warnings

This commit is contained in:
Lukas Matena 2021-10-01 14:31:22 +02:00
parent 1edbdcfecf
commit 4ca2401b69
5 changed files with 8 additions and 7 deletions
src/libslic3r/GCode

View file

@ -1456,7 +1456,7 @@ void GCodeProcessor::apply_config_simplify3d(const std::string& filename)
begin = skip_whitespaces(begin, end);
end = remove_eols(begin, end);
if (begin != end)
if (begin != end) {
if (*begin == ';') {
// Comment.
begin = skip_whitespaces(++ begin, end);
@ -1485,6 +1485,7 @@ void GCodeProcessor::apply_config_simplify3d(const std::string& filename)
// Some non-empty G-code line detected, stop parsing config comments.
reader.quit_parsing();
}
}
});
if (m_result.extruders_count == 0)