Fix pack picker if missing
This commit is contained in:
		
							parent
							
								
									75bc414e26
								
							
						
					
					
						commit
						7d2d69ba0f
					
				@ -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')
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user