From 10037b760402094a5fefabe3ed6fa36a0ce40c04 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 2 Sep 2021 15:26:56 +0200 Subject: [PATCH] keep original values of publish plugins --- openpype/pipeline/create/context.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openpype/pipeline/create/context.py b/openpype/pipeline/create/context.py index d3453f66ea..ac9362b316 100644 --- a/openpype/pipeline/create/context.py +++ b/openpype/pipeline/create/context.py @@ -166,6 +166,7 @@ class PublishAttributes: self._data = {} self._plugin_names_order = [] data = copy.deepcopy(origin_data) + added_keys = set() for plugin in attr_plugins: data = plugin.convert_attribute_values(data) attr_defs = plugin.get_attribute_defs() @@ -173,6 +174,7 @@ class PublishAttributes: continue key = plugin.__name__ + added_keys.add(key) self._plugin_names_order.append(key) value = data.get(key) or {} @@ -181,6 +183,12 @@ class PublishAttributes: self, attr_defs, value, orig_value ) + for key, value in data.items(): + if key not in added_keys: + self._data[key] = PublishAttributeValues( + self, [], value, value + ) + def __getitem__(self, key): return self._data[key]