Browse Source

Fix issue with texcache files on stale HDDs

pull/123/head
Adam Johnson 6 years ago
parent
commit
b588c87234
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 7
      korman/exporter/convert.py

7
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

Loading…
Cancel
Save