mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge pull request #1043 from BigRoy/bugfix/replace_published_scene_path_deepcopy
Replace with published path, avoid changing the instance data
This commit is contained in:
commit
30a0e55750
1 changed files with 1 additions and 1 deletions
|
|
@ -764,7 +764,7 @@ def replace_with_published_scene_path(instance, replace_in_path=True):
|
|||
return
|
||||
|
||||
# determine published path from Anatomy.
|
||||
template_data = workfile_instance.data.get("anatomyData")
|
||||
template_data = copy.deepcopy(workfile_instance.data["anatomyData"])
|
||||
rep = workfile_instance.data["representations"][0]
|
||||
template_data["representation"] = rep.get("name")
|
||||
template_data["ext"] = rep.get("ext")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue