Merged in hotfix/eallin-troubles-patch (pull request #299)

fix(ftrack): custome attribute doctor was not respecting attributes after change of names
This commit is contained in:
Jakub Ježek 2019-09-13 07:48:39 +00:00
commit 07fc12bb63

View file

@ -23,10 +23,10 @@ class CustomAttributeDoctor(BaseAction):
icon = '{}/ftrack/action_icons/PypeDoctor.svg'.format( icon = '{}/ftrack/action_icons/PypeDoctor.svg'.format(
os.environ.get('PYPE_STATICS_SERVER', '') os.environ.get('PYPE_STATICS_SERVER', '')
) )
hierarchical_ca = ['handle_start', 'handle_end', 'fstart', 'fend'] hierarchical_ca = ['handleStart', 'handleEnd', 'frameStart', 'frameEnd']
hierarchical_alternatives = { hierarchical_alternatives = {
'handle_start': 'handles', 'handleStart': 'handles',
'handle_end': 'handles' 'handleEnd': 'handles'
} }
# Roles for new custom attributes # Roles for new custom attributes
@ -34,22 +34,22 @@ class CustomAttributeDoctor(BaseAction):
write_roles = ['ALL',] write_roles = ['ALL',]
data_ca = { data_ca = {
'handle_start': { 'handleStart': {
'label': 'Frame handles start', 'label': 'Frame handles start',
'type': 'number', 'type': 'number',
'config': json.dumps({'isdecimal': False}) 'config': json.dumps({'isdecimal': False})
}, },
'handle_end': { 'handleEnd': {
'label': 'Frame handles end', 'label': 'Frame handles end',
'type': 'number', 'type': 'number',
'config': json.dumps({'isdecimal': False}) 'config': json.dumps({'isdecimal': False})
}, },
'fstart': { 'frameStart': {
'label': 'Frame start', 'label': 'Frame start',
'type': 'number', 'type': 'number',
'config': json.dumps({'isdecimal': False}) 'config': json.dumps({'isdecimal': False})
}, },
'fend': { 'frameEnd': {
'label': 'Frame end', 'label': 'Frame end',
'type': 'number', 'type': 'number',
'config': json.dumps({'isdecimal': False}) 'config': json.dumps({'isdecimal': False})