From c59475e831a55e371b1dbfbc9dbcaee7dca76228 Mon Sep 17 00:00:00 2001 From: Mariusz Ryndzionek Date: Sun, 26 Apr 2020 15:10:08 +0200 Subject: [PATCH] Leave the background plane in the saved .blender file --- svgto3dpng.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svgto3dpng.py b/svgto3dpng.py index 7101002..e050b50 100644 --- a/svgto3dpng.py +++ b/svgto3dpng.py @@ -122,11 +122,11 @@ def render(rp): render.use_file_extension = True render.filepath = rp bpy.ops.render.render(write_still=True) + bpy.ops.wm.save_as_mainfile(filepath='blender/' + os.path.basename(rp) + '.blend') def export(rp): # create STL file bpy.ops.export_mesh.stl(filepath=rp + '.stl') - bpy.ops.wm.save_as_mainfile(filepath='blender/' + os.path.basename(rp) + '.blend') argv = sys.argv if "--" not in argv: