Page MenuHome

Rigify: Remove Legacy Mode
ClosedPublic

Authored by Demeter Dzadik (Mets) on Jun 5 2021, 7:36 PM.

Details

Summary

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.

Initially discussed in T88711, let's put any further discussion here, since that thread has many topics.

Diff Detail

Repository
rBA Blender Add-ons
Branch
arcpatch-D11516
Build Status
Buildable 15366
Build 15366: arc lint + arc unit

Event Timeline

Demeter Dzadik (Mets) requested review of this revision.Jun 5 2021, 7:36 PM
Demeter Dzadik (Mets) created this revision.
Alexander Gavrilov (angavrilov) requested changes to this revision.Jun 21 2021, 11:14 AM

Some preliminary comments based on purely reading the code without trying to run it.

rigify/__init__.py
110–111

Indentation not updated to match removal of `if', unless it's just displayed wrong in the browser.

557–558

Indentation?

rigify/rigs/experimental/super_chain.py
3 ↗(On Diff #37917)

As I mentioned in chat, utils.copy_bone != utils.bones.copy_bone, so this change is wrong. If you really want to import from utils.bones, use the _legacy_copy_bone as copy_bone syntax like utils/__init__.py.

rigify/rigs/faces/super_face.py
3 ↗(On Diff #37917)

Ditto.

rigify/ui.py
104

This seems wrong. It changes the code from detecting if any bone is non-updatable to only checking the first bone.

This revision now requires changes to proceed.Jun 21 2021, 11:14 AM
Demeter Dzadik (Mets) marked 3 inline comments as done.
  • Fix indentations and don't touch imports
rigify/__init__.py
110–111

Done, please see my question in D9094#292396 about auto-formatting for Rigify.

rigify/ui.py
104

This was accidental, not sure how it snuck in there, whoops! Thanks for catching.

I think it's ok now.

This revision is now accepted and ready to land.Jun 23 2021, 3:40 PM
This revision was automatically updated to reflect the committed changes.