From 15ee2a79bcd69cd00ec81c1f1a5d29349e5f710e Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Mon, 9 Jan 2023 15:25:59 +0100 Subject: [PATCH] keep backwards compatibility --- openpype/lib/attribute_definitions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpype/lib/attribute_definitions.py b/openpype/lib/attribute_definitions.py index e9597f41fb..f6c34cebf3 100644 --- a/openpype/lib/attribute_definitions.py +++ b/openpype/lib/attribute_definitions.py @@ -488,8 +488,8 @@ class EnumDef(AbtractAttrDef): output = [] if isinstance(items, dict): - for key, value in items.items(): - output.append({"label": key, "value": value}) + for value, label in items.items(): + output.append({"label": label, "value": value}) elif isinstance(items, (tuple, list, set)): for item in items: