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
1 changed files with 1 additions and 0 deletions

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')