[Bf-extensions-cvs] [123c42df] master: Rigify: partial revert "Update for changes to Blender"
Alexander Gavrilov
noreply at git.blender.org
Tue Mar 26 09:51:35 CET 2019
Commit: 123c42df69d8d624b5382e1e3dea263beb800237
Author: Alexander Gavrilov
Date: Tue Mar 26 11:45:49 2019 +0300
Branches: master
https://developer.blender.org/rBA123c42df69d8d624b5382e1e3dea263beb800237
Rigify: partial revert "Update for changes to Blender"
This reverts unnecessary renaming from b2b015a396372.
===================================================================
M rigify/legacy/rigs/pitchipoy/super_face.py
M rigify/rigs/faces/super_face.py
===================================================================
diff --git a/rigify/legacy/rigs/pitchipoy/super_face.py b/rigify/legacy/rigs/pitchipoy/super_face.py
index 4079309f..41d1169e 100644
--- a/rigify/legacy/rigs/pitchipoy/super_face.py
+++ b/rigify/legacy/rigs/pitchipoy/super_face.py
@@ -733,7 +733,7 @@ class Rig:
def constraints( self, all_bones ):
## Def bone constraints
- def_context_menu = {
+ def_specials = {
# 'bone' : 'target'
'DEF-jaw' : 'chin',
'DEF-chin.L' : 'lips.L',
@@ -771,9 +771,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 def_context_menu:
- if def_context_menu[bone] is not None:
- self.make_constraits('def_tweak', bone, def_context_menu[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]:
diff --git a/rigify/rigs/faces/super_face.py b/rigify/rigs/faces/super_face.py
index fb5a33e7..7e36ce68 100644
--- a/rigify/rigs/faces/super_face.py
+++ b/rigify/rigs/faces/super_face.py
@@ -750,7 +750,7 @@ class Rig:
def constraints( self, all_bones ):
## Def bone constraints
- def_context_menu = {
+ def_specials = {
# 'bone' : 'target'
'DEF-jaw' : 'chin',
'DEF-chin.L' : 'lips.L',
@@ -788,9 +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 def_context_menu:
- if def_context_menu[bone] is not None:
- self.make_constraits('def_tweak', bone, def_context_menu[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