Fix of #5888 - Pause Print M117 message not saved after reloading .3mf project
This commit is contained in:
parent
aa4c018cd5
commit
e7544ed0c4
1 changed files with 2 additions and 1 deletions
|
@ -1239,7 +1239,8 @@ namespace Slic3r {
|
||||||
|
|
||||||
CustomGCode::Type type;
|
CustomGCode::Type type;
|
||||||
std::string extra;
|
std::string extra;
|
||||||
if (tree.find("type") == tree.not_found()) {
|
pt::ptree attr_tree = tree.find("<xmlattr>")->second;
|
||||||
|
if (attr_tree.find("type") == attr_tree.not_found()) {
|
||||||
// It means that data was saved in old version (2.2.0 and older) of PrusaSlicer
|
// It means that data was saved in old version (2.2.0 and older) of PrusaSlicer
|
||||||
// read old data ...
|
// read old data ...
|
||||||
std::string gcode = tree.get<std::string> ("<xmlattr>.gcode");
|
std::string gcode = tree.get<std::string> ("<xmlattr>.gcode");
|
||||||
|
|
Loading…
Reference in a new issue