mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Fix - correct resolution of published workile path
This commit is contained in:
parent
d0e1d5c36f
commit
ec54515b8c
1 changed files with 5 additions and 2 deletions
|
|
@ -113,12 +113,15 @@ class BaseCreateRoyalRenderJob(pyblish.api.InstancePlugin,
|
|||
|
||||
self.scene_path = context.data["currentFile"]
|
||||
if self.use_published:
|
||||
file_path = get_published_workfile_instance(context)
|
||||
published_workfile = get_published_workfile_instance(context)
|
||||
|
||||
# fallback if nothing was set
|
||||
if not file_path:
|
||||
if published_workfile is None:
|
||||
self.log.warning("Falling back to workfile")
|
||||
file_path = context.data["currentFile"]
|
||||
else:
|
||||
workfile_repre = published_workfile.data["representations"][0]
|
||||
file_path = workfile_repre["published_path"]
|
||||
|
||||
self.scene_path = file_path
|
||||
self.log.info(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue