12 Commits

Author SHA1 Message Date
c298e448b0 Harden BAT against missing/broken libraries and zstandard failures
- ExportBatPack and BAT_OT_export_zip: catch EnvironmentError (typically
  raised when zstandard is missing or the installed wheel is incompatible
  with the embedded Python) and any other exception, and report it via
  self.report instead of crashing the operator.
- file2blocks.BlockIterator: skip libraries that fail to open with a
  warning instead of aborting the whole trace, so production blends with
  one stale linked library still pack.
- preferences: use __package__ (stable, full dotted path) for the
  AddonPreferences bl_idname instead of __name__.split('.')[0], which
  breaks when the add-on is loaded under an unexpected module name.
- magic_compression: zstandard handling tweaks alongside the operator
  error reports above.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 15:24:32 +02:00
bfdd86bfb7 Revert "Embed verbose debug log inside ZipPacker output"
This reverts commit e16ccc675ea4417f03e87905805a9c0ca12b1923.
2026-04-28 15:10:27 +02:00
e16ccc675e Embed verbose debug log inside ZipPacker output
ZipPacker now captures the full BAT_DEBUG log stream into an in-memory
buffer for the lifetime of the pack and writes it as bat-debug.log inside
the produced zip, so archives are self-describing for post-mortem
debugging (which assets were found, where they were rewritten to, which
files were missing, etc.).

The capture forces the blender_asset_tracer logger to DEBUG only on a
dedicated handler, so terminal verbosity is unchanged. The log is flushed
into the closed zip via append mode in close(), which also covers
post-transfer messages and KeyboardInterrupt / FileTransferError paths.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 15:06:23 +02:00
pullusb
45d58c588f Change file permissions from 644 to 775 2024-11-26 10:59:31 +01:00
pullusb
fc32ebd453 update BAT module to 1.15 version 2023-01-10 11:41:55 +01:00
Pullusb
85037c027a Add project root env fallback
1.3.4

- added: `PROJECT_ROOT` key is used if `ZIP_ROOT` is not specified. Fallback to initial property if neither exists
- added: checkbox to disable env variable check
2022-01-07 00:08:18 +01:00
Pullusb
dd82a38956 set module name
1.3.3

- code: sys.module name corrected when addon folder isn't named `blender_asset_tracer` as expected
2021-12-11 17:24:02 +01:00
Pullusb
c4cabccbb7 readme update 2021-11-29 15:30:28 +01:00
Pullusb
577f0e65ae doc update 2021-11-29 15:27:19 +01:00
Pullusb
5af5c18f94 changed zip pack label
1.3.2

- changed: zip packer ops label `Export File to .ZIP` >> `Zip Pack - keep hierachy`
2021-11-19 12:48:05 +01:00
Pullusb
e2610a882e added prefs for file zipper
1.3.1

- added: prefs for file zipper (fallback to this if env is not defined)
- changed: zip operator id_name `bpy.ops.adm.export_zip` >> `bpy.opsbat.export_zip`
2021-10-18 17:05:56 +02:00
Pullusb
3c5cca81a5 initial commit 2021-10-18 15:54:04 +02:00