mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
- fixed creating of hierarchical attributes
This commit is contained in:
parent
a4ec8b54f5
commit
ecc1b9063e
1 changed files with 6 additions and 1 deletions
|
|
@ -497,7 +497,12 @@ class CustomAttributes(BaseAction):
|
|||
def get_entity_type(self, attr):
|
||||
if 'is_hierarchical' in attr:
|
||||
if attr['is_hierarchical'] is True:
|
||||
return {'is_hierarchical':True}
|
||||
type = attr['entity_type'] if ('entity_type' in attr) else 'show'
|
||||
|
||||
return {
|
||||
'is_hierarchical': True,
|
||||
'entity_type': type
|
||||
}
|
||||
|
||||
if 'entity_type' not in attr:
|
||||
raise CustAttrException('Missing entity_type')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue