mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
removed unused method convert_family_attribute_values
This commit is contained in:
parent
dcb74c333b
commit
8eac18e4ef
1 changed files with 0 additions and 25 deletions
|
|
@ -171,31 +171,6 @@ class BaseCreator:
|
|||
"""
|
||||
return []
|
||||
|
||||
def convert_family_attribute_values(self, attribute_values):
|
||||
"""Convert values loaded from workfile metadata.
|
||||
|
||||
If passed values match current creator version just return the value
|
||||
back. Update of changes in workfile must not happen in this method.
|
||||
|
||||
Default implementation only convert passed values to right types. But
|
||||
implementation can be changed to do more stuff (update instance
|
||||
to newer version etc.).
|
||||
|
||||
Args:
|
||||
attribute_values(dict): Values from instance metadata.
|
||||
|
||||
Returns:
|
||||
dict: Converted values.
|
||||
"""
|
||||
attr_defs = self.get_attribute_defs()
|
||||
for attr_def in attr_defs:
|
||||
key = attr_def.key
|
||||
if key in attribute_values:
|
||||
attribute_values[key] = attr_def.convert_value(
|
||||
attribute_values[key]
|
||||
)
|
||||
return attribute_values
|
||||
|
||||
|
||||
class Creator(BaseCreator):
|
||||
"""Creator that has more information for artist to show in UI.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue