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:
Jakub Trllo 2024-12-13 13:50:40 +01:00 committed by GitHub
commit 30a0e55750
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")