From dd257bad6f5dd26004ca4a10523058a7d4813795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 4 Feb 2021 11:14:23 +0100 Subject: [PATCH] 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. --- CHANGELOG.md | 5 +++++ blender_asset_tracer/trace/file2blocks.py | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0891b8a..1553f4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ This file logs the changes that are actually interesting to users (new features, 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) - 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). diff --git a/blender_asset_tracer/trace/file2blocks.py b/blender_asset_tracer/trace/file2blocks.py index 6fc58c6..598df4d 100644 --- a/blender_asset_tracer/trace/file2blocks.py +++ b/blender_asset_tracer/trace/file2blocks.py @@ -125,7 +125,6 @@ class BlockIterator: for lib_bpath, idblocks in blocks_per_lib.items(): lib_path = bpathlib.make_absolute(lib_bpath.to_path()) - assert lib_path.exists() if not lib_path.exists(): log.warning('Library %s does not exist', lib_path) continue