From afabfeb25ee679f2c681cbc96cb32931de1cdce8 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Mon, 1 Jul 2024 22:11:01 +0200 Subject: [PATCH] Add comment --- .../plugins/publish/extract_usd_layer_contributions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/ayon_core/plugins/publish/extract_usd_layer_contributions.py b/client/ayon_core/plugins/publish/extract_usd_layer_contributions.py index d1abb5ddca..87dfcbc890 100644 --- a/client/ayon_core/plugins/publish/extract_usd_layer_contributions.py +++ b/client/ayon_core/plugins/publish/extract_usd_layer_contributions.py @@ -93,6 +93,9 @@ def get_representation_path_in_publish_context( Union[str, None]: Returns the path if it could be resolved """ + # The AYON publishing logic is set up in such a way that you can not + # publish to another project. As such, we know if the project name we're + # looking for doesn't match the publishing context it'll not be in there. if context.data["projectName"] != project_name: return