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(
os.environ.get('PYPE_STATICS_SERVER', '')
)
hierarchical_ca = ['handle_start', 'handle_end', 'fstart', 'fend']
hierarchical_ca = ['handleStart', 'handleEnd', 'frameStart', 'frameEnd']
hierarchical_alternatives = {
'handle_start': 'handles',
'handle_end': 'handles'
'handleStart': 'handles',
'handleEnd': 'handles'
}
# Roles for new custom attributes
@ -34,22 +34,22 @@ class CustomAttributeDoctor(BaseAction):
write_roles = ['ALL',]
data_ca = {
'handle_start': {
'handleStart': {
'label': 'Frame handles start',
'type': 'number',
'config': json.dumps({'isdecimal': False})
},
'handle_end': {
'handleEnd': {
'label': 'Frame handles end',
'type': 'number',
'config': json.dumps({'isdecimal': False})
},
'fstart': {
'frameStart': {
'label': 'Frame start',
'type': 'number',
'config': json.dumps({'isdecimal': False})
},
'fend': {
'frameEnd': {
'label': 'Frame end',
'type': 'number',
'config': json.dumps({'isdecimal': False})