From 2e98795ad0999cc930762cf3aa7e6db769824809 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 22 Oct 2021 18:51:36 +0200 Subject: [PATCH] pop keys that are already set --- 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 752854574a..8f0aad896b 100644 --- a/openpype/pipeline/create/context.py +++ b/openpype/pipeline/create/context.py @@ -408,6 +408,14 @@ class CreatedInstance: version = 1 self._data["version"] = version + # Pop from source data all keys that are defined in `_data` before + # this moment and through their values away + # - they should be the same and if are not then should not change + # already set values + for key in self._data.keys(): + if key in data: + data.pop(key) + # Stored creator specific attribute values # {key: value} creator_values = copy.deepcopy(orig_creator_attributes)