[Bf-extensions-cvs] [b424215f] blender2.8: Rigify: fix incorrect constraints in super_face to avoid error spam.
Alexander Gavrilov
noreply at git.blender.org
Thu Nov 15 10:46:41 CET 2018
Commit: b424215f53e81338a7ba057a1d8d372104b7d335
Author: Alexander Gavrilov
Date: Thu Nov 15 12:15:00 2018 +0300
Branches: blender2.8
https://developer.blender.org/rBAb424215f53e81338a7ba057a1d8d372104b7d335
Rigify: fix incorrect constraints in super_face to avoid error spam.
In 2.8 depsgraph prints a lot of error messages if constraints try to
reference non-existant bones, which slows things down if nothing else.
===================================================================
M rigify/rigs/faces/super_face.py
===================================================================
diff --git a/rigify/rigs/faces/super_face.py b/rigify/rigs/faces/super_face.py
index 2c4999d5..b899c0b2 100644
--- a/rigify/rigs/faces/super_face.py
+++ b/rigify/rigs/faces/super_face.py
@@ -758,8 +758,10 @@ class Rig:
'DEF-chin.R' : 'lips.R',
'DEF-jaw.R.001' : 'chin.R',
'DEF-brow.T.L.003' : 'nose',
+ 'DEF-ear.L' : None,
'DEF-ear.L.003' : 'ear.L.004',
'DEF-ear.L.004' : 'ear.L',
+ 'DEF-ear.R' : None,
'DEF-ear.R.003' : 'ear.R.004',
'DEF-ear.R.004' : 'ear.R',
'DEF-lip.B.L.001' : 'lips.L',
@@ -786,8 +788,9 @@ class Rig:
pattern = r'^DEF-(\w+\.?\w?\.?\w?)(\.?)(\d*?)(\d?)$'
for bone in [ bone for bone in all_bones['deform']['all'] if 'lid' not in bone ]:
- if bone in list( def_specials.keys() ):
- self.make_constraits('def_tweak', bone, def_specials[bone] )
+ if bone in def_specials:
+ if def_specials[bone] is not None:
+ self.make_constraits('def_tweak', bone, def_specials[bone] )
else:
matches = re.match( pattern, bone ).groups()
if len( matches ) > 1 and matches[-1]:
More information about the Bf-extensions-cvs
mailing list