Skip to content

Commit 647ccd5

Browse files
committed
Fix multiple external metarigs
1 parent 1c5bd0c commit 647ccd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

metarig_menu.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,13 @@ def get_external_metarigs(feature_sets_path):
208208
# Clear and fill metarigs public variables
209209
metarigs.clear()
210210
get_internal_metarigs()
211+
metarigs['external'] = {}
211212

212213
for feature_set in os.listdir(feature_sets_path):
213214
if feature_set:
214215
utils.get_resource(os.path.join(feature_set, '__init__'), base_path=feature_sets_path)
215216

216-
metarigs['external'] = get_metarigs(feature_sets_path, os.path.join(feature_set, utils.METARIG_DIR))
217+
metarigs['external'].update(get_metarigs(feature_sets_path, os.path.join(feature_set, utils.METARIG_DIR)))
217218

218219
metarig_ops.clear()
219220
armature_submenus.clear()

0 commit comments

Comments
 (0)