Skip to content

Commit 7e591a2

Browse files
committed
rig_dict 'external' Keyerror fix
1 parent f0c26a4 commit 7e591a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)