mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
OP-2765 - fix missing representation for disabled workfile
This commit is contained in:
parent
4ad395953e
commit
91e2ffb8dc
1 changed files with 3 additions and 0 deletions
|
|
@ -34,6 +34,8 @@ class CollectWorkfile(pyblish.api.ContextPlugin):
|
|||
"stagingDir": staging_dir,
|
||||
}
|
||||
|
||||
if not instance.data.get("representations"):
|
||||
instance.data["representations"] = []
|
||||
instance.data["representations"].append(representation)
|
||||
|
||||
instance.data["publish"] = instance.data["active"] # for DL
|
||||
|
|
@ -45,6 +47,7 @@ class CollectWorkfile(pyblish.api.ContextPlugin):
|
|||
project_entity = context.data["projectEntity"]
|
||||
|
||||
instance_data = {
|
||||
"active": True,
|
||||
"asset": asset_entity["name"],
|
||||
"task": task,
|
||||
"frameStart": asset_entity["data"]["frameStart"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue