Skip to content

Commit

Permalink
Merge pull request #218 from ynput/bugfix/unset-entity-parent-if-pare…
Browse files Browse the repository at this point in the history
…nt-is-not-fetched

EntityHub: Unset parent id if parent is not fetched
  • Loading branch information
iLLiCiTiT authored Nov 28, 2024
2 parents 14eec9a + 61e40cf commit bf7b938
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ayon_api/entity_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,8 @@ def delete_entity(self, entity):
parent = self._entities_by_id.get(parent_id)
if parent is not None:
parent.remove_child(entity.id)
else:
self.unset_entity_parent(entity.id, parent_id)

def reset_immutable_for_hierarchy_cache(
self, entity_id: Optional[str], bottom_to_top: Optional[bool] = True
Expand Down

0 comments on commit bf7b938

Please sign in to comment.