File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ def update_external_rigs(self, context):
126126
127127 custom_rigs_folder = bpy .context .user_preferences .addons ['rigify' ].preferences .custom_rigs_folder
128128
129- if custom_rigs_folder == "" :
129+ if custom_rigs_folder == "" and 'external' in rig_lists . rigs_dict :
130130 rig_lists .rigs_dict .pop ('external' )
131131 return
132132
Original file line number Diff line number Diff line change @@ -631,7 +631,7 @@ def draw(self, context):
631631 # Rig type parameters / Rig type non-exist alert
632632 if rig_name != "" :
633633 try :
634- if rig_name in rig_lists .rigs_dict ['external' ]['rig_list' ]:
634+ if 'external' in rig_lists . rigs_dict and rig_name in rig_lists .rigs_dict ['external' ]['rig_list' ]:
635635 custom_rigs_folder = bpy .context .user_preferences .addons ['rigify' ].preferences .custom_rigs_folder
636636 rig = get_rig_type (rig_name , custom_rigs_folder )
637637 else :
You can’t perform that action at this time.
0 commit comments