mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH:support set ams filament
jira:[for 2nozzle setting] Change-Id: Ib9e20bcdf6d8ea1bf5dd5e8624a68730e05e69ad (cherry picked from commit 78c592819473b1291d1bec1126ccbf7d86bb17d5)
This commit is contained in:
@@ -4366,8 +4366,11 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
|
||||
;
|
||||
}
|
||||
}
|
||||
for (auto &filament_id : need_checked_filament_id)
|
||||
m_checked_filament.insert(filament_id);
|
||||
|
||||
/*parse new print data*/
|
||||
try {
|
||||
parse_new_info(jj);
|
||||
} catch (...) {}
|
||||
#pragma endregion
|
||||
} else if (jj["command"].get<std::string>() == "gcode_line") {
|
||||
//ack of gcode_line
|
||||
@@ -4822,13 +4825,6 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*parse new print data*/
|
||||
try
|
||||
{
|
||||
parse_new_info(jj);
|
||||
}
|
||||
catch (...){}
|
||||
}
|
||||
|
||||
if (!key_field_only) {
|
||||
|
||||
Reference in New Issue
Block a user