[Bf-extensions-cvs] [3d968d9] master: Amaranth Addon: - Missing Images report: Skip packed files (their original file might be missing, but they're still in the .blend file)

Pablo Vazquez noreply at git.blender.org
Wed May 13 12:40:05 CEST 2015


Commit: 3d968d9304038320184716eda298d0997b76848f
Author: Pablo Vazquez
Date:   Wed May 13 12:38:42 2015 +0200
Branches: master
https://developer.blender.org/rBAC3d968d9304038320184716eda298d0997b76848f

Amaranth Addon:
- Missing Images report: Skip packed files (their original file might be missing, but they're still in the .blend file)

===================================================================

M	amaranth/scene/debug.py

===================================================================

diff --git a/amaranth/scene/debug.py b/amaranth/scene/debug.py
index 5f20883..57b0431 100755
--- a/amaranth/scene/debug.py
+++ b/amaranth/scene/debug.py
@@ -879,11 +879,11 @@ class AMTH_SCENE_PT_scene_debug(bpy.types.Panel):
         col = split.column()
 
         if images:
-            import os.path
 
             for im in images:
                 if im.type not in ("UV_TEST", "RENDER_RESULT", "COMPOSITING"):
-                    if not os.path.exists(bpy.path.abspath(im.filepath, library=im.library)):
+                    if not im.packed_file and \
+                       not os.path.exists(bpy.path.abspath(im.filepath, library=im.library)):
                         images_missing.append(["%s%s [%s]%s" % (
                             "[L] " if im.library else "",
                             im.name, im.users,



More information about the Bf-extensions-cvs mailing list