mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Added possibility to propagate collected variant
context.data["variant"] might be filled only by collect_batch_data, which should take precedence
This commit is contained in:
parent
5df9c1b41f
commit
45da6cf5d0
1 changed files with 3 additions and 1 deletions
|
|
@ -22,9 +22,11 @@ class CollectWorkfile(pyblish.api.ContextPlugin):
|
|||
break
|
||||
|
||||
family = "workfile"
|
||||
# context.data["variant"] might come only from collect_batch_data
|
||||
variant = context.data.get("variant") or self.default_variant
|
||||
subset = get_subset_name_with_asset_doc(
|
||||
family,
|
||||
self.default_variant,
|
||||
variant,
|
||||
context.data["anatomyData"]["task"]["name"],
|
||||
context.data["assetEntity"],
|
||||
context.data["anatomyData"]["project"]["name"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue