Skip to content

Commit

Permalink
autofill path correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Oct 27, 2023
1 parent e841d6b commit ffabd74
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ayon_api/entity_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -2437,10 +2437,13 @@ def get_path(self, dynamic_value=True):

if self._path is None:
parent = self.parent
path = self.name
if parent.entity_type == "folder":
parent_path = parent.path
path = "/".join([parent_path, path])
path = "/".join([parent_path, self.name])
elif self._entity_hub.path_start_with_slash:
path = "/{}".format(self.name)
else:
path = self.name
self._path = path
return self._path

Expand Down

0 comments on commit ffabd74

Please sign in to comment.