diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-12 03:05:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-12 03:05:44 +0300 |
commit | b2b015a396372e39a7035f394f06405b68423fed (patch) | |
tree | d198df235a4a2156a2b869218e7238e16e857838 /rigify | |
parent | c7f6ef3fef1315e97fd7326c08b7c7ad7b82762a (diff) |
Update for changes to Blender
Diffstat (limited to 'rigify')
-rw-r--r-- | rigify/legacy/rigs/pitchipoy/super_face.py | 8 | ||||
-rw-r--r-- | rigify/rigs/faces/super_face.py | 8 | ||||
-rw-r--r-- | rigify/ui.py | 6 |
3 files changed, 11 insertions, 11 deletions
diff --git a/rigify/legacy/rigs/pitchipoy/super_face.py b/rigify/legacy/rigs/pitchipoy/super_face.py index 32097d43..ce593f55 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_specials = { + def_context_menu = { # '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_specials: - if def_specials[bone] is not None: - self.make_constraits('def_tweak', bone, def_specials[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] ) 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 b899c0b2..c097cbb9 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_specials = { + def_context_menu = { # '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_specials: - if def_specials[bone] is not None: - self.make_constraits('def_tweak', bone, def_specials[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] ) else: matches = re.match( pattern, bone ).groups() if len( matches ) > 1 and matches[-1]: diff --git a/rigify/ui.py b/rigify/ui.py index a8a25103..3d2a1efa 100644 --- a/rigify/ui.py +++ b/rigify/ui.py @@ -514,7 +514,7 @@ class DATA_UL_rigify_bone_groups(bpy.types.UIList): row2.enabled = not bpy.context.object.data.rigify_colors_lock -class DATA_MT_rigify_bone_groups_specials(bpy.types.Menu): +class DATA_MT_rigify_bone_groups_context_menu(bpy.types.Menu): bl_label = 'Rigify Bone Groups Specials' def draw(self, context): @@ -556,7 +556,7 @@ class DATA_PT_rigify_bone_groups(bpy.types.Panel): col = row.column(align=True) col.operator("armature.rigify_bone_group_add", icon='ZOOM_IN', text="") col.operator("armature.rigify_bone_group_remove", icon='ZOOM_OUT', text="").idx = obj.data.rigify_colors_index - col.menu("DATA_MT_rigify_bone_groups_specials", icon='DOWNARROW_HLT', text="") + col.menu("DATA_MT_rigify_bone_groups_context_menu", icon='DOWNARROW_HLT', text="") row = layout.row() row.prop(armature, 'rigify_theme_to_add', text = 'Theme') op = row.operator("armature.rigify_bone_group_add_theme", text="Add From Theme") @@ -1333,7 +1333,7 @@ classes = ( DATA_OT_rigify_bone_group_remove, DATA_OT_rigify_bone_group_remove_all, DATA_UL_rigify_bone_groups, - DATA_MT_rigify_bone_groups_specials, + DATA_MT_rigify_bone_groups_context_menu, DATA_PT_rigify_bone_groups, DATA_PT_rigify_layer_names, DATA_PT_rigify_buttons, |