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):
126
126
127
127
custom_rigs_folder = bpy .context .user_preferences .addons ['rigify' ].preferences .custom_rigs_folder
128
128
129
- if custom_rigs_folder == "" :
129
+ if custom_rigs_folder == "" and 'external' in rig_lists . rigs_dict :
130
130
rig_lists .rigs_dict .pop ('external' )
131
131
return
132
132
Original file line number Diff line number Diff line change @@ -631,7 +631,7 @@ def draw(self, context):
631
631
# Rig type parameters / Rig type non-exist alert
632
632
if rig_name != "" :
633
633
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' ]:
635
635
custom_rigs_folder = bpy .context .user_preferences .addons ['rigify' ].preferences .custom_rigs_folder
636
636
rig = get_rig_type (rig_name , custom_rigs_folder )
637
637
else :
You can’t perform that action at this time.
0 commit comments