mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fixed find root path
This commit is contained in:
parent
df215fe092
commit
017a30a1b7
1 changed files with 4 additions and 0 deletions
|
|
@ -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() + "}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue