use current file for the scene rendering if the reference is imported

This commit is contained in:
Kayla Man 2023-01-10 00:30:18 +08:00
parent 2cf9b1ee63
commit 9301bf03fa

View file

@ -528,10 +528,7 @@ class AbstractSubmitDeadline(pyblish.api.InstancePlugin):
# determine published path from Anatomy.
template_data = workfile_instance.data.get("anatomyData")
if self.import_reference:
rep = workfile_instance.data["representations"][1]
else:
rep = workfile_instance.data["representations"][0]
rep = workfile_instance.data["representations"][0]
template_data["representation"] = rep.get("name")
template_data["ext"] = rep.get("ext")
template_data["comment"] = None