Fix an issue that OrcaSlicer can't open previously generated gcode/.3mf file #712 #958

This commit is contained in:
SoftFever 2023-05-06 20:13:58 +08:00
parent 52d6dc71eb
commit 4807b9d1b6
3 changed files with 4 additions and 4 deletions

View file

@ -1190,11 +1190,10 @@ ConfigSubstitutions ConfigBase::load_from_gcode_file(const std::string &file, Fo
bool has_delimiters = true;
{
//BBS
std::string bambuslicer_gcode_header = "; ";
bambuslicer_gcode_header += SLIC3R_APP_NAME;
std::string bambuslicer_gcode_header = "; BambuStudio";
std::string orcaslicer_gcode_header = std::string("; generated by ");
orcaslicer_gcode_header += Slic3r::header_slic3r_generated();
orcaslicer_gcode_header += SLIC3R_APP_NAME;
std::string header;
bool header_found = false;