Blender Crawl: Improvements based on User Feedback #53
@ -187,7 +187,7 @@ def main() -> int:
|
||||
|
||||
# Purge is optional so it can be none
|
||||
if purge_path is not None:
|
||||
scripts.append(purge_path)
|
||||
scripts.append(script_append_save(purge_path, args.nosave))
|
||||
|
||||
if not exec:
|
||||
blender_exec = find_executable()
|
||||
|
@ -20,18 +20,5 @@
|
||||
# (c) 2021, Blender Foundation
|
||||
|
||||
import bpy
|
||||
|
||||
# Setup prefs.
|
||||
bpy.context.preferences.filepaths.save_version = 0 #TODO Figure out why this is here
|
||||
|
||||
# Purge.
|
||||
print("Starting Recursive Purge")
|
||||
bpy.ops.outliner.orphans_purge(do_local_ids=True, do_linked_ids=True, do_recursive=True)
|
||||
|
||||
# Save.
|
||||
bpy.ops.wm.save_mainfile()
|
||||
print("Saved file: %s", bpy.data.filepath)
|
||||
|
||||
# Quit.
|
||||
print("Closing File")
|
||||
bpy.ops.wm.quit_blender()
|
||||
|
Loading…
Reference in New Issue
Block a user