mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-18 02:12:18 -07: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:
parent
214ed3b6c4
commit
2b2e7f7603
1 changed files with 2 additions and 0 deletions
|
|
@ -5740,6 +5740,8 @@ void MachineObject::parse_new_info(json print)
|
|||
nozzle_obj.nozzle_type = NozzleType::ntHardenedSteel;
|
||||
}
|
||||
} else {
|
||||
nozzle_obj.tool_type = NozzleToolType::NONE_TOOLTYPE;
|
||||
nozzle_obj.nozzle_flow = NozzleFlowType::NONE_FLOWTYPE;
|
||||
nozzle_obj.nozzle_type = NozzleType::ntUndefine;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue