mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +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,
|
"stagingDir": staging_dir,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if not instance.data.get("representations"):
|
||||||
|
instance.data["representations"] = []
|
||||||
instance.data["representations"].append(representation)
|
instance.data["representations"].append(representation)
|
||||||
|
|
||||||
instance.data["publish"] = instance.data["active"] # for DL
|
instance.data["publish"] = instance.data["active"] # for DL
|
||||||
|
|
@ -45,6 +47,7 @@ class CollectWorkfile(pyblish.api.ContextPlugin):
|
||||||
project_entity = context.data["projectEntity"]
|
project_entity = context.data["projectEntity"]
|
||||||
|
|
||||||
instance_data = {
|
instance_data = {
|
||||||
|
"active": True,
|
||||||
"asset": asset_entity["name"],
|
"asset": asset_entity["name"],
|
||||||
"task": task,
|
"task": task,
|
||||||
"frameStart": asset_entity["data"]["frameStart"],
|
"frameStart": asset_entity["data"]["frameStart"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue