mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
FIX: fix calibration bug
Change-Id: I522d7b4bca878f0bcb2d142ec7fda08f33d386d5
This commit is contained in:
@@ -3616,6 +3616,11 @@ int MachineObject::parse_json(std::string payload)
|
||||
vt_tray.color = "";
|
||||
}
|
||||
|
||||
if (jj["vt_tray"].contains("cali_idx"))
|
||||
vt_tray.cali_idx = jj["vt_tray"]["cali_idx"].get<int>();
|
||||
else
|
||||
vt_tray.cali_idx = -1;
|
||||
|
||||
vt_tray.cols.clear();
|
||||
if (jj["vt_tray"].contains("cols")) {
|
||||
if (jj["vt_tray"].is_array()) {
|
||||
|
||||
Reference in New Issue
Block a user