mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
moved copy creation of review component
This commit is contained in:
parent
695a8da239
commit
0fa2ea67bc
1 changed files with 4 additions and 4 deletions
|
|
@ -159,16 +159,16 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
|||
})
|
||||
}
|
||||
}
|
||||
# Create copy of item before setting location or changing asset
|
||||
src_components_to_add.append(
|
||||
(repre, copy.deepcopy(review_item))
|
||||
)
|
||||
if first_review_repre:
|
||||
first_review_repre = False
|
||||
else:
|
||||
# Add representation name to asset name of "not first" review
|
||||
review_item["asset_data"]["name"] += repre["name"].title()
|
||||
|
||||
# Create copy of item before setting location
|
||||
src_components_to_add.append(
|
||||
(repre, copy.deepcopy(review_item))
|
||||
)
|
||||
# Set location
|
||||
review_item["component_location"] = ftrack_server_location
|
||||
# Add item to component list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue