Remove assertion that library blend files always exist

Remove an assertion that would cause BAT to raise and exception and halt
when a library blend file is missing. This assertion was fine for aiding
the coding of the library, but now gets in the way of tracing dependencies
of partially checked-out projects.
This commit is contained in:
Sybren A. Stüvel 2021-02-04 11:14:23 +01:00
parent 0a5a50ccf0
commit dd257bad6f
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,11 @@
This file logs the changes that are actually interesting to users (new features, This file logs the changes that are actually interesting to users (new features,
changed functionality, fixed bugs). changed functionality, fixed bugs).
## Version 1.3.1 (in development)
- Remove assertion error when a library blend file linked from a Geometry Nodes modifier does not exist.
## Version 1.3 (2021-02-02) ## Version 1.3 (2021-02-02)
- When creating a BAT pack, symlinks are no longer followed. This allows BAT-packing a directory structure with symlinked files (such as a Shaman checkout). - When creating a BAT pack, symlinks are no longer followed. This allows BAT-packing a directory structure with symlinked files (such as a Shaman checkout).

View File

@ -125,7 +125,6 @@ class BlockIterator:
for lib_bpath, idblocks in blocks_per_lib.items(): for lib_bpath, idblocks in blocks_per_lib.items():
lib_path = bpathlib.make_absolute(lib_bpath.to_path()) lib_path = bpathlib.make_absolute(lib_bpath.to_path())
assert lib_path.exists()
if not lib_path.exists(): if not lib_path.exists():
log.warning('Library %s does not exist', lib_path) log.warning('Library %s does not exist', lib_path)
continue continue