Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/rigify
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2018-11-15 12:15:00 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2018-11-15 12:15:00 +0300
commitb424215f53e81338a7ba057a1d8d372104b7d335 (patch)
treed04185dcdf6d5adc1877769aa514c6ec4ca25fc1 /rigify
parent9365cecb2fc64a61a9d9ec14e0f05118753a6fb7 (diff)
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.
Diffstat (limited to 'rigify')
-rw-r--r--rigify/rigs/faces/super_face.py7
1 files changed, 5 insertions, 2 deletions
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]: