diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-08 01:12:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-08 01:12:03 +0300 |
commit | 30c4c4599dfb72b430a409648bb1407a0f197332 (patch) | |
tree | cbe8a167691f8fabc2e451665666385f119a81b3 /release/scripts/ui/properties_object_constraint.py | |
parent | 4e61f8a836b0973234765fa302379bc1d7493e34 (diff) |
pedantic enum string consistancy
Diffstat (limited to 'release/scripts/ui/properties_object_constraint.py')
-rw-r--r-- | release/scripts/ui/properties_object_constraint.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/release/scripts/ui/properties_object_constraint.py b/release/scripts/ui/properties_object_constraint.py index 550b202f588..c662706743c 100644 --- a/release/scripts/ui/properties_object_constraint.py +++ b/release/scripts/ui/properties_object_constraint.py @@ -133,7 +133,7 @@ class ConstraintButtonsPanel(bpy.types.Panel): def IK(self, context, layout, con): if context.object.pose.ik_solver == "ITASC": layout.itemR(con, "ik_type") - getattr(self, "IK_" + con.ik_type)(context, layout, con) + getattr(self, 'IK_' + con.ik_type)(context, layout, con) else: # Legacy IK constraint self.target_template(layout, con) @@ -702,7 +702,7 @@ class BONE_PT_inverse_kinematics(ConstraintButtonsPanel): split.itemR(pchan, "ik_stretch", text="Stretch", slider=True) split.itemL() - if ob.pose.ik_solver == "ITASC": + if ob.pose.ik_solver == 'ITASC': row = layout.row() row.itemR(pchan, "ik_rot_control", text="Control Rotation") row.itemR(pchan, "ik_rot_weight", text="Weight", slider=True) @@ -723,7 +723,7 @@ class BONE_PT_iksolver_itasc(ConstraintButtonsPanel): if ob and bone: pchan = ob.pose.pose_channels[bone.name] - return pchan.has_ik and ob.pose.ik_solver == "ITASC" and ob.pose.ik_param + return pchan.has_ik and ob.pose.ik_solver == 'ITASC' and ob.pose.ik_param return False @@ -734,7 +734,7 @@ class BONE_PT_iksolver_itasc(ConstraintButtonsPanel): itasc = ob.pose.ik_param layout.itemR(itasc, "mode", expand=True) - simulation = itasc.mode == "SIMULATION" + simulation = itasc.mode == 'SIMULATION' if simulation: layout.itemL(text="Reiteration:") layout.itemR(itasc, "reiteration", expand=True) @@ -742,7 +742,7 @@ class BONE_PT_iksolver_itasc(ConstraintButtonsPanel): flow = layout.column_flow() flow.itemR(itasc, "precision", text="Prec") flow.itemR(itasc, "num_iter", text="Iter") - flow.active = not simulation or itasc.reiteration != "NEVER" + flow.active = not simulation or itasc.reiteration != 'NEVER' if simulation: layout.itemR(itasc, "auto_step") @@ -757,7 +757,7 @@ class BONE_PT_iksolver_itasc(ConstraintButtonsPanel): if simulation: layout.itemR(itasc, "feedback") layout.itemR(itasc, "max_velocity") - if itasc.solver == "DLS": + if itasc.solver == 'DLS': row = layout.row() row.itemR(itasc, "dampmax", text="Damp", slider=True) row.itemR(itasc, "dampeps", text="Eps", slider=True) |