diff options
author | Demeter Dzadik <Mets> | 2021-06-23 17:43:23 +0300 |
---|---|---|
committer | Demeter Dzadik <demeter@blender.studio> | 2021-06-23 17:43:31 +0300 |
commit | 7412d6c3e44bfda9df89e790fd0eb08cadc801b4 (patch) | |
tree | 96c22239de9eadb69bf8d0adb3633fe6e5f84f39 /rigify/ui.py | |
parent | 15bafef93491ac0caf7c39c27999847910c1d50d (diff) |
Rigify: Remove Legacy Mode
This patch removes the Legacy Mode checkbox from the addon preferences and all associated code.
Ability to convert old legacy metarigs is not removed.
LegacyRig wrapper class is not removed.
Various legacy-only functions and imports were not removed, with the reasoning that they are still used by [this unmaintained feature set](https://github.com/cessen/cessen_rigify_ext).
Initially discussed in T88711, let's put any further discussion here, since that thread has many topics.
Reviewed By: angavrilov
Differential Revision: https://developer.blender.org/D11516
Diffstat (limited to 'rigify/ui.py')
-rw-r--r-- | rigify/ui.py | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/rigify/ui.py b/rigify/ui.py index 6a3b81a6..02912934 100644 --- a/rigify/ui.py +++ b/rigify/ui.py @@ -635,7 +635,7 @@ class VIEW3D_PT_tools_rigify_dev(bpy.types.Panel): bl_label = "Rigify Dev Tools" bl_space_type = 'VIEW_3D' bl_region_type = 'UI' - bl_category = 'Rigify' + bl_category = "Rigify" @classmethod def poll(cls, context): @@ -664,7 +664,7 @@ class VIEW3D_PT_rigify_animation_tools(bpy.types.Panel): bl_context = "posemode" bl_space_type = 'VIEW_3D' bl_region_type = 'UI' - bl_category = 'Rigify' + bl_category = "Rigify" @classmethod def poll(cls, context): @@ -810,24 +810,6 @@ class UpgradeMetarigTypes(bpy.types.Operator): if type(obj.data) == bpy.types.Armature: upgradeMetarigTypes(obj) return {'FINISHED'} - - -class SwitchToLegacy(bpy.types.Operator): - """Switch to Legacy mode""" - - bl_idname = "pose.rigify_switch_to_legacy" - bl_label = "Legacy Mode will disable Rigify new features" - bl_description = 'Switches Rigify to Legacy Mode' - bl_options = {'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - return context.window_manager.invoke_confirm(self, event) - - def execute(self, context): - bpy.context.preferences.addons['rigify'].preferences.legacy_mode = True - return {'FINISHED'} - - class Sample(bpy.types.Operator): """Create a sample metarig to be modified before generating the final rig""" @@ -1394,7 +1376,6 @@ classes = ( LayerInit, Generate, UpgradeMetarigTypes, - SwitchToLegacy, Sample, VIEW3D_MT_rigify, EncodeMetarig, |