diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-05-03 20:24:42 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-05-03 20:24:42 +0300 |
commit | 186357ccc04facf959551c99315a4d55857394d8 (patch) | |
tree | f7a1fd4e39d923f83143e531dbaed90961e35c18 /rigify | |
parent | 010e955654483c4e5de63d399bd15c5ec4def2d2 (diff) |
Rigify: re-register rig parameters after installing a feature set package.
Otherwise the rig properties may not work correctly until blender restart.
Diffstat (limited to 'rigify')
-rw-r--r-- | rigify/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rigify/__init__.py b/rigify/__init__.py index 2b0a553f..092b882b 100644 --- a/rigify/__init__.py +++ b/rigify/__init__.py @@ -145,6 +145,9 @@ class RigifyPreferences(AddonPreferences): print('Reloading external metarigs...') metarig_menu.get_external_metarigs(feature_sets_path) + # Re-register rig paramaters + register_rig_parameters() + legacy_mode: BoolProperty( name='Rigify Legacy Mode', description='Select if you want to use Rigify in legacy mode', @@ -474,6 +477,10 @@ def register(): bpy.context.preferences.addons['rigify'].preferences.update_external_rigs() # Add rig parameters + register_rig_parameters() + + +def register_rig_parameters(): if bpy.context.preferences.addons['rigify'].preferences.legacy_mode: for rig in rig_lists.rig_list: r = utils.get_rig_type(rig) |