From b588c87234cee79db71e2f4b3df1f28debb18b5c Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 15 Sep 2018 18:31:19 -0400 Subject: [PATCH] Fix issue with texcache files on stale HDDs --- korman/exporter/convert.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/korman/exporter/convert.py b/korman/exporter/convert.py index b3133cc..1f760db 100644 --- a/korman/exporter/convert.py +++ b/korman/exporter/convert.py @@ -354,7 +354,12 @@ class Exporter: def texcache_path(self): age = bpy.context.scene.world.plasma_age filepath = age.texcache_path - if not filepath or not Path(filepath).is_file(): + try: + valid_path = not filepath or not Path(filepath).is_file() + except OSError: + valid_path = False + + if not valid_path: filepath = bpy.context.blend_data.filepath if not filepath: filepath = self.filepath