Fix pack picker if missing

master
ChristopheSeux 2024-03-04 09:55:46 +01:00
parent 75bc414e26
commit 7d2d69ba0f
1 changed files with 4 additions and 1 deletions

View File

@ -736,8 +736,11 @@ def get_picker_path(rig, source, start=None):
def pack_picker(rig, start=None):
if not 'rig_picker' in rig.data:
return
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)
if not picker_path.exists():
print(f'{picker_path} not exists')