Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Make sure udim in representation is not a list #764

4 changes: 2 additions & 2 deletions client/ayon_core/plugins/publish/integrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ def prepare_representation(
# Manage anatomy template data
template_data.pop("frame", None)
if is_udim:
template_data["udim"] = repre["udim"][0]
template_data["udim"] = repre["udim"]
# Construct destination filepath from template
template_filled = path_template_obj.format_strict(template_data)
repre_context = template_filled.used_values
Expand All @@ -792,7 +792,7 @@ def prepare_representation(
# Explicitly store the full list even though template data might
# have a different value because it uses just a single udim tile
if repre.get("udim"):
repre_context["udim"] = repre.get("udim") # store list
repre_context["udim"] = repre.get("udim")[0] # store list

# Use previous representation's id if there is a name match
existing = existing_repres_by_name.get(repre["name"].lower())
Expand Down