Page MenuHome

Rigify: slow face rig generation
Needs Triage, NormalPublic

Description

Is there any reason for super_face rig to use legacy copy_bone function? I changed it to new one that doesn't do any mode switches and haven't found any issues with the generated rig, but it made rig generation much faster.

diff --git a/rigify/rigs/faces/super_face.py b/rigify/rigs/faces/super_face.py
index 6cf2cd35..152f81ae 100644
--- a/rigify/rigs/faces/super_face.py
+++ b/rigify/rigs/faces/super_face.py
@@ -1,6 +1,6 @@
 import bpy, re
 from   mathutils      import Vector
-from   ...utils       import copy_bone, flip_bone
+from   ...utils       import copy_bone_simple as copy_bone, flip_bone
 from   ...utils       import org, strip_org, make_deformer_name, connected_children_names, make_mechanism_name
 from   ...utils       import create_widget
 from   ...utils.mechanism import make_property

Event Timeline

I've already implemented better solution for this problem. When I test it enough I'll submit it for Differential review.
https://github.com/Upliner/blender-addons/commit/3304f3578fa621ced532465de13b2876a8e63aac