Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1040 from pypeclub/hotfix/fix_move_under_project
Browse files Browse the repository at this point in the history
Fix entity move under project
  • Loading branch information
mkolar authored Feb 19, 2021
2 parents dfa7157 + 459d43b commit 15b6581
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pype/modules/ftrack/events/event_sync_to_avalon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1679,15 +1679,15 @@ def process_moved(self):
self.updates[mongo_id]["data"] = {}

vis_par_id = None
ent_path_items = [self.cur_project["full_name"]]
if par_av_ent["type"].lower() != "project":
vis_par_id = par_av_ent["_id"]
ent_path_items.extend(par_av_ent["data"]["parents"])
ent_path_items.append(par_av_ent["name"])

self.updates[mongo_id]["data"]["visualParent"] = vis_par_id
self.moved_in_avalon.append(mongo_id)

# TODO logging
ent_path_items = [self.cur_project["full_name"]]
ent_path_items.extend(par_av_ent["data"]["parents"])
ent_path_items.append(par_av_ent["name"])
ent_path_items.append(avalon_ent["name"])
ent_path = "/".join(ent_path_items)
self.log.debug((
Expand Down

0 comments on commit 15b6581

Please sign in to comment.