From 017a30a1b7bc7e8a3f00e3d773d67033b04ea044 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 20 Jan 2021 19:35:19 +0100 Subject: [PATCH] fixed find root path --- pype/lib/anatomy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pype/lib/anatomy.py b/pype/lib/anatomy.py index ad07851533..d5e54efa9a 100644 --- a/pype/lib/anatomy.py +++ b/pype/lib/anatomy.py @@ -1245,6 +1245,10 @@ class RootItem: root_paths = list(self.cleaned_data.values()) mod_path = self.clean_path(path) for root_path in root_paths: + # Skip empty paths + if not root_path: + continue + if mod_path.startswith(root_path): result = True replacement = "{" + self.full_key() + "}"