mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 22:47:32 -06:00
ENH:Don't call the interface when task id is incorrect
JIRA:STUDIO-4322 Change-Id: I6fc1dc7379cba0702927e30cab0aa271074c59da (cherry picked from commit 109e3570a898706f449ccac7878c50aef2df9f75)
This commit is contained in:
parent
dfe851c6ba
commit
ddc052749c
2 changed files with 6 additions and 4 deletions
|
@ -4508,7 +4508,8 @@ void MachineObject::update_slice_info(std::string project_id, std::string profil
|
|||
}
|
||||
|
||||
if (project_id.compare("0") == 0
|
||||
|| profile_id.compare("0") == 0) return;
|
||||
|| profile_id.compare("0") == 0
|
||||
|| subtask_id.compare("0") == 0) return;
|
||||
|
||||
BOOST_LOG_TRIVIAL(trace) << "slice_info: start";
|
||||
slice_info = new BBLSliceInfo();
|
||||
|
@ -4520,8 +4521,6 @@ void MachineObject::update_slice_info(std::string project_id, std::string profil
|
|||
if (plate_idx >= 0) {
|
||||
plate_index = plate_idx;
|
||||
} else {
|
||||
if (subtask_id.compare("0") == 0)
|
||||
return;
|
||||
|
||||
std::string subtask_json;
|
||||
unsigned http_code = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue