1
This commit is contained in:
1 parent
7298c657a6
commit
7ac04b969d
1 file changed
+7
@@ -598,6 +598,13 @@ def main(workdir, r, print_id):
|
|||||||
bpy.context.view_layer.objects.active = bpy.data.objects[pid_objname]
|
bpy.context.view_layer.objects.active = bpy.data.objects[pid_objname]
|
||||||
bpy.ops.eyek.exe()
|
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)
|
qr_img = Image.open(qr_path)
|
||||||
jpg_img.paste(qr_img, (0, 0), qr_img)
|
jpg_img.paste(qr_img, (0, 0), qr_img)
|
||||||
jpg_img.save(jpg_path, quality=90)
|
jpg_img.save(jpg_path, quality=90)
|
||||||
|
|||||||
Reference in new issue
Block a user