mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Override stored repre context udim for backwards compatibility
This commit is contained in:
parent
47259f8ef7
commit
b128e0addf
1 changed files with 6 additions and 4 deletions
|
|
@ -275,7 +275,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
exclude_families = ["clip"]
|
||||
db_representation_context_keys = [
|
||||
"project", "asset", "task", "subset", "version", "representation",
|
||||
"family", "hierarchy", "task", "username", "frame", "udim"
|
||||
"family", "hierarchy", "task", "username", "frame"
|
||||
]
|
||||
default_template_name = "publish"
|
||||
|
||||
|
|
@ -681,15 +681,17 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
# Single file transfer
|
||||
transfers = [(src, dst)]
|
||||
|
||||
if repre.get("udim"):
|
||||
repre_context["udim"] = repre.get("udim") # store list
|
||||
|
||||
for key in self.db_representation_context_keys:
|
||||
value = template_data.get(key)
|
||||
if not value:
|
||||
continue
|
||||
repre_context[key] = template_data[key]
|
||||
|
||||
# Explicitly store the full list even though template data might
|
||||
# have a different value
|
||||
if repre.get("udim"):
|
||||
repre_context["udim"] = repre.get("udim") # store list
|
||||
|
||||
# Define representation id
|
||||
repre_id = ObjectId()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue