diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-09 00:50:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-09 00:50:06 +0400 |
commit | a82bcb38c40fbeeea3715341d07ace5bb56890ed (patch) | |
tree | 5e75b39242729489bd797e94eda9d3e7aecf0f0f /rigify | |
parent | b941652219a5fe080bf2d71664a393ca83c238b5 (diff) |
style cleanup: pep8
Diffstat (limited to 'rigify')
-rw-r--r-- | rigify/rigs/biped/arm/ik.py | 8 | ||||
-rw-r--r-- | rigify/rigs/biped/leg/deform.py | 4 | ||||
-rw-r--r-- | rigify/rigs/biped/leg/fk.py | 4 | ||||
-rw-r--r-- | rigify/rigs/biped/leg/ik.py | 12 | ||||
-rw-r--r-- | rigify/rigs/finger.py | 2 | ||||
-rw-r--r-- | rigify/rigs/misc/delta.py | 2 |
6 files changed, 16 insertions, 16 deletions
diff --git a/rigify/rigs/biped/arm/ik.py b/rigify/rigs/biped/arm/ik.py index 70720ac9..31383b54 100644 --- a/rigify/rigs/biped/arm/ik.py +++ b/rigify/rigs/biped/arm/ik.py @@ -195,7 +195,7 @@ class Rig: pole_p.lock_scale = True, True, True # Set up custom properties - if self.switch == True: + if self.switch is True: prop = rna_idprop_ui_prop_get(hand_p, "ikfk_switch", create=True) hand_p["ikfk_switch"] = 0.0 prop["soft_min"] = prop["min"] = 0.0 @@ -246,7 +246,7 @@ class Rig: con.name = "ik" con.target = self.obj con.subtarget = uarm - if self.switch == True: + if self.switch is True: # IK/FK switch driver fcurve = con.driver_add("influence") driver = fcurve.driver @@ -261,7 +261,7 @@ class Rig: con.name = "ik" con.target = self.obj con.subtarget = farm - if self.switch == True: + if self.switch is True: # IK/FK switch driver fcurve = con.driver_add("influence") driver = fcurve.driver @@ -276,7 +276,7 @@ class Rig: con.name = "ik" con.target = self.obj con.subtarget = hand - if self.switch == True: + if self.switch is True: # IK/FK switch driver fcurve = con.driver_add("influence") driver = fcurve.driver diff --git a/rigify/rigs/biped/leg/deform.py b/rigify/rigs/biped/leg/deform.py index 79977fad..76f751f1 100644 --- a/rigify/rigs/biped/leg/deform.py +++ b/rigify/rigs/biped/leg/deform.py @@ -95,7 +95,7 @@ class Rig: foot = None heel = None for b in self.obj.data.bones[leg_bones[1]].children: - if b.use_connect == True: + if b.use_connect is True: if len(b.children) >= 1 and has_connected_children(b): foot = b.name else: @@ -108,7 +108,7 @@ class Rig: # Get the toe toe = None for b in self.obj.data.bones[foot].children: - if b.use_connect == True: + if b.use_connect is True: toe = b.name if toe is None: diff --git a/rigify/rigs/biped/leg/fk.py b/rigify/rigs/biped/leg/fk.py index 270fffdb..3d776cb7 100644 --- a/rigify/rigs/biped/leg/fk.py +++ b/rigify/rigs/biped/leg/fk.py @@ -54,7 +54,7 @@ class Rig: foot = None heel = None for b in self.obj.data.bones[leg_bones[1]].children: - if b.use_connect == True: + if b.use_connect is True: if len(b.children) >= 1 and has_connected_children(b): foot = b.name else: @@ -66,7 +66,7 @@ class Rig: # Get the toe toe = None for b in self.obj.data.bones[foot].children: - if b.use_connect == True: + if b.use_connect is True: toe = b.name # Get the toe diff --git a/rigify/rigs/biped/leg/ik.py b/rigify/rigs/biped/leg/ik.py index d114b942..7d01a602 100644 --- a/rigify/rigs/biped/leg/ik.py +++ b/rigify/rigs/biped/leg/ik.py @@ -105,7 +105,7 @@ class Rig: heel = None rocker = None for b in self.obj.data.bones[leg_bones[1]].children: - if b.use_connect == True: + if b.use_connect is True: if len(b.children) >= 1 and has_connected_children(b): foot = b.name else: @@ -120,7 +120,7 @@ class Rig: # Get the toe toe = None for b in self.obj.data.bones[foot].children: - if b.use_connect == True: + if b.use_connect is True: toe = b.name # Get toe @@ -373,7 +373,7 @@ class Rig: pole_p.lock_scale = True, True, True # Set up custom properties - if self.switch == True: + if self.switch is True: prop = rna_idprop_ui_prop_get(foot_p, "ikfk_switch", create=True) foot_p["ikfk_switch"] = 0.0 prop["soft_min"] = prop["min"] = 0.0 @@ -495,7 +495,7 @@ class Rig: con.name = "ik" con.target = self.obj con.subtarget = thigh - if self.switch == True: + if self.switch is True: # IK/FK switch driver fcurve = con.driver_add("influence") driver = fcurve.driver @@ -510,7 +510,7 @@ class Rig: con.name = "ik" con.target = self.obj con.subtarget = shin - if self.switch == True: + if self.switch is True: # IK/FK switch driver fcurve = con.driver_add("influence") driver = fcurve.driver @@ -525,7 +525,7 @@ class Rig: con.name = "ik" con.target = self.obj con.subtarget = foot_ik_target - if self.switch == True: + if self.switch is True: # IK/FK switch driver fcurve = con.driver_add("influence") driver = fcurve.driver diff --git a/rigify/rigs/finger.py b/rigify/rigs/finger.py index 7961a5fd..0dee1b0d 100644 --- a/rigify/rigs/finger.py +++ b/rigify/rigs/finger.py @@ -171,7 +171,7 @@ class Rig: for bone in bones[1:]: pb[bone].lock_location = True, True, True - if pb[self.org_bones[0]].bone.use_connect == True: + if pb[self.org_bones[0]].bone.use_connect is True: pb[bones[0]].lock_location = True, True, True pb[ctrl].lock_scale = True, False, True diff --git a/rigify/rigs/misc/delta.py b/rigify/rigs/misc/delta.py index d61cf695..b32134ff 100644 --- a/rigify/rigs/misc/delta.py +++ b/rigify/rigs/misc/delta.py @@ -43,7 +43,7 @@ class Rig: if bb[bone].children is None: raise MetarigError("RIGIFY ERROR: bone '%s': rig type requires one child" % org_name(bone.name)) - if bb[bone].use_connect == True: + if bb[bone].use_connect is True: raise MetarigError("RIGIFY ERROR: bone '%s': rig type cannot be connected to parent" % org_name(bone.name)) self.obj = obj |