Skip to content

Commit

Permalink
Leave the background plane in the saved .blender file
Browse files Browse the repository at this point in the history
  • Loading branch information
mryndzionek committed Apr 26, 2020
1 parent b4b49cf commit c59475e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svgto3dpng.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c59475e

Please sign in to comment.