dongchangxi 11 months ago
parent
commit
6d4f9a20ed
  1. 2
      blender/cal_foot_position.py

2
blender/cal_foot_position.py

@ -580,6 +580,7 @@ def main(workdir, pid, order_id, print_id):
get_obj_max_foot() get_obj_max_foot()
except Exception as e: except Exception as e:
print(f"get obj max foot err {e}") print(f"get obj max foot err {e}")
bpy.ops.wm.quit_blender()
res = requests.get(f'https://mp.api.suwa3d.com/api/footCode/deleteByPid?pid={pid}') res = requests.get(f'https://mp.api.suwa3d.com/api/footCode/deleteByPid?pid={pid}')
os.system(f'blender -b -P fill_dm_code.py') os.system(f'blender -b -P fill_dm_code.py')
return return
@ -594,6 +595,7 @@ def main(workdir, pid, order_id, print_id):
max_qr, qr_location, max_qr_length, rotation = get_max_qr(foot_points) max_qr, qr_location, max_qr_length, rotation = get_max_qr(foot_points)
except Exception as e: except Exception as e:
print("异常处理错误") print("异常处理错误")
bpy.ops.wm.quit_blender()
res = requests.get(f'https://mp.api.suwa3d.com/api/footCode/deleteByPid?pid={pid}') res = requests.get(f'https://mp.api.suwa3d.com/api/footCode/deleteByPid?pid={pid}')
os.system(f'blender -b -P fill_dm_code.py') os.system(f'blender -b -P fill_dm_code.py')
return return

Loading…
Cancel
Save