pep8 changes to rigify (minor warnings still there)
also found quite a few cases where variables were used that hadnt been defined.
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
# <pep8 compliant>
|
||||
|
||||
import bpy
|
||||
from rigify import get_layer_dict
|
||||
from rigify_utils import bone_class_instance, copy_bone_simple
|
||||
from rigify import RigifyError
|
||||
from rigify_utils import copy_bone_simple
|
||||
|
||||
METARIG_NAMES = tuple()
|
||||
RIG_TYPE = "track_dual"
|
||||
@@ -48,12 +48,11 @@ bool_map = {0:False, 1:True,
|
||||
"no":False, "yes":True,
|
||||
"No":False, "Yes":True}
|
||||
|
||||
|
||||
def metarig_definition(obj, orig_bone_name):
|
||||
return (orig_bone_name,)
|
||||
|
||||
|
||||
|
||||
|
||||
def main(obj, bone_definition, base_names, options):
|
||||
""" A dual-bone track setup.
|
||||
Deformation only (no controls).
|
||||
@@ -89,7 +88,6 @@ def main(obj, bone_definition, base_names, options):
|
||||
bone2 = bone_e.name
|
||||
|
||||
|
||||
|
||||
bpy.ops.object.mode_set(mode='OBJECT')
|
||||
|
||||
# Constraints
|
||||
@@ -110,4 +108,3 @@ def main(obj, bone_definition, base_names, options):
|
||||
|
||||
|
||||
return tuple()
|
||||
|
||||
|
Reference in New Issue
Block a user