diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-01 16:35:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-01 16:35:51 +0400 |
commit | 6f2787a32081cbc3515808893dba709b0f79e2f4 (patch) | |
tree | b34df9008076859cfe2cf2f56335d76e840575ea /rigify/rigs/spine.py | |
parent | f6dc4b39f67417ee023787c641ad158be737c214 (diff) |
set as pep8, only minor edits
Diffstat (limited to 'rigify/rigs/spine.py')
-rw-r--r-- | rigify/rigs/spine.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rigify/rigs/spine.py b/rigify/rigs/spine.py index 1b77c4c3..cee08615 100644 --- a/rigify/rigs/spine.py +++ b/rigify/rigs/spine.py @@ -16,6 +16,8 @@ # #======================= END GPL LICENSE BLOCK ======================== +# <pep8 compliant> + """ TODO: - Add parameters for bone transform alphas. """ @@ -71,8 +73,8 @@ class Rig: self.control_indices.sort() self.pivot_rest = self.params.rest_pivot_slide - self.pivot_rest = max(self.pivot_rest, 1.0/len(self.org_bones)) - self.pivot_rest = min(self.pivot_rest, 1.0-(1.0/len(self.org_bones))) + self.pivot_rest = max(self.pivot_rest, 1.0 / len(self.org_bones)) + self.pivot_rest = min(self.pivot_rest, 1.0 - (1.0 / len(self.org_bones))) if len(self.org_bones) <= 1: raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 2 or more bones" % (strip_org(bone_name))) @@ -532,7 +534,6 @@ class Rig: group.rest_pivot_slide = bpy.props.FloatProperty(name="Rest Pivot Slide", default=0.0, min=0.0, max=1.0, soft_min=0.0, soft_max=1.0, description="The pivot slide value in the rest pose") group.chain_bone_controls = bpy.props.StringProperty(name="Control bone list", default="", description="Define which bones have controls") - @classmethod def parameters_ui(self, layout, obj, bone): """ Create the ui for the rig parameters. |