From d2e13750e91a1c9bd63f1726e22bb5ff659a8758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 15 Mar 2018 14:48:40 +0100 Subject: [PATCH] Moved comment to correct location --- blender_asset_tracer/pack/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blender_asset_tracer/pack/__init__.py b/blender_asset_tracer/pack/__init__.py index 03ffa05..7cef6f9 100644 --- a/blender_asset_tracer/pack/__init__.py +++ b/blender_asset_tracer/pack/__init__.py @@ -121,9 +121,6 @@ class Packer: new_location_paths = set() for usage in trace.deps(self.blendfile): - # Needing rewriting is not a per-asset thing, but a per-asset-per- - # blendfile thing, since different blendfiles can refer to it in - # different ways (for example with relative and absolute paths). asset_path = usage.abspath if any(asset_path.match(glob) for glob in self._exclude_globs): log.info('Excluding file: %s', asset_path) @@ -136,6 +133,9 @@ class Packer: bfile_path = usage.block.bfile.filepath.absolute() + # Needing rewriting is not a per-asset thing, but a per-asset-per- + # blendfile thing, since different blendfiles can refer to it in + # different ways (for example with relative and absolute paths). path_in_project = self._path_in_project(asset_path) use_as_is = usage.asset_path.is_blendfile_relative() and path_in_project needs_rewriting = not use_as_is