mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use current file for the scene rendering if the reference is imported
This commit is contained in:
parent
2cf9b1ee63
commit
9301bf03fa
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue