Fix pack picker if missing
parent
75bc414e26
commit
7d2d69ba0f
|
@ -736,8 +736,11 @@ def get_picker_path(rig, source, start=None):
|
||||||
|
|
||||||
|
|
||||||
def pack_picker(rig, start=None):
|
def pack_picker(rig, start=None):
|
||||||
|
if not 'rig_picker' in rig.data:
|
||||||
|
return
|
||||||
|
|
||||||
pickers = []
|
pickers = []
|
||||||
for picker_source in rig.data.get('rig_picker', {}).get('sources', {}):
|
for picker_source in rig.data['rig_picker'].get('sources', []):
|
||||||
picker_path = get_picker_path(rig, picker_source['source'], start)
|
picker_path = get_picker_path(rig, picker_source['source'], start)
|
||||||
if not picker_path.exists():
|
if not picker_path.exists():
|
||||||
print(f'{picker_path} not exists')
|
print(f'{picker_path} not exists')
|
||||||
|
|
Loading…
Reference in New Issue