mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
loaded values from default/studio/project are tried to convert
This commit is contained in:
parent
af1c18db1f
commit
68d20b910e
1 changed files with 7 additions and 3 deletions
|
|
@ -375,9 +375,13 @@ class BaseItemEntity(BaseEntity):
|
|||
if value is NOT_SET:
|
||||
return value
|
||||
|
||||
# Validate value type and return value itself if is valid.
|
||||
if self.is_value_valid_type(value):
|
||||
return value
|
||||
try:
|
||||
new_value = self.convert_to_valid_type(value)
|
||||
except InvalidValueType:
|
||||
new_value = NOT_SET
|
||||
|
||||
if new_value is not NOT_SET:
|
||||
return new_value
|
||||
|
||||
# Warning log about invalid value type.
|
||||
self.log.warning(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue