From ae657498e3dfaf5db3b273519cb5a4e07ef7b1e7 Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Fri, 27 Nov 2020 12:30:39 +0100 Subject: [PATCH] fix extract look file check --- pype/plugins/maya/publish/extract_look.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pype/plugins/maya/publish/extract_look.py b/pype/plugins/maya/publish/extract_look.py index 6bd202093f..7a5dc25fcf 100644 --- a/pype/plugins/maya/publish/extract_look.py +++ b/pype/plugins/maya/publish/extract_look.py @@ -350,7 +350,7 @@ class ExtractLook(pype.api.Extractor): if existing and not force: self.log.info("Found hash in database, preparing hardlink..") source = next((p for p in existing if os.path.exists(p)), None) - if filepath: + if source: return source, HARDLINK, texture_hash else: self.log.warning(