mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
ENH:add protection for invalid nozzle data
jira:[invalid nozzle data] Change-Id: I56983af991bc3e9f69c2d30429987bb860618eaf (cherry picked from commit 9b3de1bd3f3d5e5c15d072f80658e95fe0fc7491)
This commit is contained in:
@@ -5740,6 +5740,8 @@ void MachineObject::parse_new_info(json print)
|
|||||||
nozzle_obj.nozzle_type = NozzleType::ntHardenedSteel;
|
nozzle_obj.nozzle_type = NozzleType::ntHardenedSteel;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
nozzle_obj.tool_type = NozzleToolType::NONE_TOOLTYPE;
|
||||||
|
nozzle_obj.nozzle_flow = NozzleFlowType::NONE_FLOWTYPE;
|
||||||
nozzle_obj.nozzle_type = NozzleType::ntUndefine;
|
nozzle_obj.nozzle_type = NozzleType::ntUndefine;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user