Page MenuHome

Rigify: slow face rig generation
Needs Triage, NormalPublic


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/ b/rigify/rigs/faces/
index 6cf2cd35..152f81ae 100644
--- a/rigify/rigs/faces/
+++ b/rigify/rigs/faces/
@@ -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.