2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-06 13:35:39 +00:00

Reset scene before creating a new blend, reducing overall filesize

This commit is contained in:
Phillip Stephens 2015-08-08 15:43:27 -07:00
parent 99765b60ff
commit 224e6348b6

View File

@ -81,6 +81,7 @@ while True:
writepipeline(b'CANCELLED')
elif cmdargs[0] == 'CREATE':
bpy.ops.wm.read_homefile()
bpy.context.user_preferences.filepaths.save_version = 0
if 'FINISHED' in bpy.ops.wm.save_as_mainfile(filepath=cmdargs[1]):
writepipeline(b'FINISHED')