Operating system: Windows 10
Short description of error
Importing BAT as a module into a blender add-on and performing a trace or pack operation on the currently open .blend file will result in the following error upon trying to save the .blend file.
Exact steps for others to reproduce the error
I have attached a simple add-on for the purposes of demonstrating this behavior. It adds a panel to blender with a single button called "Trace" which will trace the currently open blend file if it has been saved.
- Open blender
- Install provided add-on
- Save a scene so that that the file exists on disk
- Click 'trace'
- The add-on should print all external assets that the file references to the console (This works fine - as far as I can tell BAT correctly traces all assets)
- Attempt to save the .blend file again and you should see the 'Unable to make version backup' error.
I believe the issue is that BAT is not correctly closing files on Windows. I have tried manually calling the blender_asset_tracer.blendfile.close_all_cached() method but nothing changes.