Skip to content

Commit

Permalink
Add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Dec 24, 2024
1 parent 702d49f commit 7e61857
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client/ayon_harmony/api/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ def cache_instance_data(shared_data):
Dict[str, Any]: Shared data.
"""

# TODO: We should find a time and place to 'clean up' orphaned data
# of nodes that do not actually exist in the scene anymore.
# Consider this pseudocode based on the legacy creators:
# if remove_orphaned:
# node_name = key.split("/")[-1]
# located_node = harmony.find_node_by_name(node_name, 'WRITE')
# if not located_node:
# print("Removing orphaned instance {}".format(key))
# harmony.remove(key)
# continue

if shared_data.get("harmony_cached_instance_data") is None:
cache = dict()
cache_legacy = dict()
Expand Down

0 comments on commit 7e61857

Please sign in to comment.