This commit is contained in:
dongchangxi committed 2025-01-15 10:03:10 +08:00
1 parent 7298c657a6
commit 7ac04b969d
1 file changed
+7
+7
View File
@@ -597,6 +597,13 @@ def main(workdir, r, print_id):
bpy.data.objects['Empty'].select_set(True)
bpy.context.view_layer.objects.active = bpy.data.objects[pid_objname]
bpy.ops.eyek.exe()
#判断qr_path是否存在,不存在就执行下一个任务
if not os.path.exists(qr_path):
#移除该脚底板的面积处理
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
qr_img = Image.open(qr_path)
jpg_img.paste(qr_img, (0, 0), qr_img)