mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +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.
|
# determine published path from Anatomy.
|
||||||
template_data = workfile_instance.data.get("anatomyData")
|
template_data = workfile_instance.data.get("anatomyData")
|
||||||
if self.import_reference:
|
rep = workfile_instance.data["representations"][0]
|
||||||
rep = workfile_instance.data["representations"][1]
|
|
||||||
else:
|
|
||||||
rep = workfile_instance.data["representations"][0]
|
|
||||||
template_data["representation"] = rep.get("name")
|
template_data["representation"] = rep.get("name")
|
||||||
template_data["ext"] = rep.get("ext")
|
template_data["ext"] = rep.get("ext")
|
||||||
template_data["comment"] = None
|
template_data["comment"] = None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue