From d2c7f1db2d7f3d016bca707cb376948030ba973c Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:05:35 +0100 Subject: [PATCH 1/3] remove `"root"` key from template data --- client/ayon_core/pipeline/delivery.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/ayon_core/pipeline/delivery.py b/client/ayon_core/pipeline/delivery.py index 1a8a8498b9..8fdf2547ba 100644 --- a/client/ayon_core/pipeline/delivery.py +++ b/client/ayon_core/pipeline/delivery.py @@ -409,5 +409,9 @@ def get_representations_delivery_template_data( "version": version_entity["version"], }) _merge_data(template_data, repre_entity["context"]) + + # Remove roots from temlate data to auto-fill them with anatomy data + template_data.pop("root") + output[repre_id] = template_data return output From f8d0f2ac36e07e397862ec594c570a2409dbfb6f Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:30:21 +0100 Subject: [PATCH 2/3] fix typo Co-authored-by: Roy Nieterau --- client/ayon_core/pipeline/delivery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ayon_core/pipeline/delivery.py b/client/ayon_core/pipeline/delivery.py index 8fdf2547ba..05b78dc05b 100644 --- a/client/ayon_core/pipeline/delivery.py +++ b/client/ayon_core/pipeline/delivery.py @@ -410,7 +410,7 @@ def get_representations_delivery_template_data( }) _merge_data(template_data, repre_entity["context"]) - # Remove roots from temlate data to auto-fill them with anatomy data + # Remove roots from template data to auto-fill them with anatomy data template_data.pop("root") output[repre_id] = template_data From e4d0d3dfb95ea519903fb60562b8d1b9cf4f705b Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:31:22 +0100 Subject: [PATCH 3/3] safe pop of root --- client/ayon_core/pipeline/delivery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ayon_core/pipeline/delivery.py b/client/ayon_core/pipeline/delivery.py index 05b78dc05b..366c261e08 100644 --- a/client/ayon_core/pipeline/delivery.py +++ b/client/ayon_core/pipeline/delivery.py @@ -411,7 +411,7 @@ def get_representations_delivery_template_data( _merge_data(template_data, repre_entity["context"]) # Remove roots from template data to auto-fill them with anatomy data - template_data.pop("root") + template_data.pop("root", None) output[repre_id] = template_data return output