From 6d4f9a20edb71fb2ae29435943a0ebaa21ee62f0 Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Wed, 15 Jan 2025 14:25:14 +0800 Subject: [PATCH] 1 --- blender/cal_foot_position.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blender/cal_foot_position.py b/blender/cal_foot_position.py index 3fb6b97..3933564 100644 --- a/blender/cal_foot_position.py +++ b/blender/cal_foot_position.py @@ -580,6 +580,7 @@ def main(workdir, pid, order_id, print_id): get_obj_max_foot() except Exception as 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}') os.system(f'blender -b -P fill_dm_code.py') 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) except Exception as e: print("异常处理错误") + bpy.ops.wm.quit_blender() res = requests.get(f'https://mp.api.suwa3d.com/api/footCode/deleteByPid?pid={pid}') os.system(f'blender -b -P fill_dm_code.py') return