Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2019-05-29 15:33:23 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2019-05-29 15:33:32 +0300
commit3c160c6cb3f14d3c2803317bf97d41159949da25 (patch)
treeb251909e98f390fd8341df4862b7151f0a35aa14 /rigify/__init__.py
parent815c1eab95b05dea209fb16866ad93ce6504179f (diff)
Rigify: force reloading rigs to prune the last deleted feature set.
Diffstat (limited to 'rigify/__init__.py')
-rw-r--r--rigify/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rigify/__init__.py b/rigify/__init__.py
index 8bb09357..4374116f 100644
--- a/rigify/__init__.py
+++ b/rigify/__init__.py
@@ -127,14 +127,14 @@ class RigifyPreferences(AddonPreferences):
register()
- def update_external_rigs(self):
+ def update_external_rigs(self, force=False):
"""Get external feature sets"""
if self.legacy_mode:
return
set_list = feature_set_list.get_installed_list()
- if len(set_list) > 0:
+ if force or len(set_list) > 0:
# Reload rigs
print('Reloading external rigs...')
rig_lists.get_external_rigs(set_list)