mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
don't use set for value conversion
This commit is contained in:
parent
b1422b7fb4
commit
64f511a43b
1 changed files with 5 additions and 1 deletions
|
|
@ -604,7 +604,11 @@ class EnumDef(AbstractAttrDef):
|
||||||
|
|
||||||
if value is None:
|
if value is None:
|
||||||
return copy.deepcopy(self.default)
|
return copy.deepcopy(self.default)
|
||||||
return list(self._item_values.intersection(value))
|
return [
|
||||||
|
v
|
||||||
|
for v in value
|
||||||
|
if v in self._item_values
|
||||||
|
]
|
||||||
|
|
||||||
def is_value_valid(self, value: Any) -> bool:
|
def is_value_valid(self, value: Any) -> bool:
|
||||||
"""Check if item is available in possible values."""
|
"""Check if item is available in possible values."""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue