diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-19 08:32:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-19 08:32:24 +0300 |
commit | 5b0f0421ef1d841d7389b504057dbf76998007c7 (patch) | |
tree | 01fd941322922ad06a24b7179b52c66ac3a4d2ad /release/scripts/startup/bl_ui/properties_constraint.py | |
parent | 9573bf432c4b06d940b4b38cc455826f47518884 (diff) |
Cleanup: mark unused arguments in UI scripts
Quiet's pylint W0613 warning, also remove some unused args.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_constraint.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_constraint.py | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py index 0fc67d4aed6..a5353a4e29e 100644 --- a/release/scripts/startup/bl_ui/properties_constraint.py +++ b/release/scripts/startup/bl_ui/properties_constraint.py @@ -93,7 +93,7 @@ class ConstraintButtonsPanel: col = split.column() col.prop(con, "chain_count") - def CHILD_OF(self, context, layout, con): + def CHILD_OF(self, _context, layout, con): self.target_template(layout, con) split = layout.split() @@ -120,7 +120,7 @@ class ConstraintButtonsPanel: row.operator("constraint.childof_set_inverse") row.operator("constraint.childof_clear_inverse") - def TRACK_TO(self, context, layout, con): + def TRACK_TO(self, _context, layout, con): self.target_template(layout, con) row = layout.row() @@ -176,7 +176,7 @@ class ConstraintButtonsPanel: sub.active = con.use_rotation sub.prop(con, "orient_weight", text="Rotation", slider=True) - def IK_COPY_POSE(self, context, layout, con): + def IK_COPY_POSE(self, _context, layout, con): self.target_template(layout, con) self.ik_template(layout, con) @@ -211,7 +211,7 @@ class ConstraintButtonsPanel: row.prop(con, "lock_rotation_z", text="Z") split.active = con.use_rotation - def IK_DISTANCE(self, context, layout, con): + def IK_DISTANCE(self, _context, layout, con): self.target_template(layout, con) self.ik_template(layout, con) @@ -221,7 +221,7 @@ class ConstraintButtonsPanel: row.prop(con, "weight", text="Weight", slider=True) row.prop(con, "distance", text="Distance", slider=True) - def FOLLOW_PATH(self, context, layout, con): + def FOLLOW_PATH(self, _context, layout, con): self.target_template(layout, con) layout.operator("constraint.followpath_path_animate", text="Animate Path", icon='ANIM_DATA') @@ -246,7 +246,7 @@ class ConstraintButtonsPanel: row.prop(con, "up_axis", text="Up") row.label() - def LIMIT_ROTATION(self, context, layout, con): + def LIMIT_ROTATION(self, _context, layout, con): split = layout.split() col = split.column(align=True) @@ -276,7 +276,7 @@ class ConstraintButtonsPanel: row.label(text="Convert:") row.prop(con, "owner_space", text="") - def LIMIT_LOCATION(self, context, layout, con): + def LIMIT_LOCATION(self, _context, layout, con): split = layout.split() col = split.column() @@ -317,7 +317,7 @@ class ConstraintButtonsPanel: row.label(text="Convert:") row.prop(con, "owner_space", text="") - def LIMIT_SCALE(self, context, layout, con): + def LIMIT_SCALE(self, _context, layout, con): split = layout.split() col = split.column() @@ -358,7 +358,7 @@ class ConstraintButtonsPanel: row.label(text="Convert:") row.prop(con, "owner_space", text="") - def COPY_ROTATION(self, context, layout, con): + def COPY_ROTATION(self, _context, layout, con): self.target_template(layout, con) split = layout.split() @@ -385,7 +385,7 @@ class ConstraintButtonsPanel: self.space_template(layout, con) - def COPY_LOCATION(self, context, layout, con): + def COPY_LOCATION(self, _context, layout, con): self.target_template(layout, con) split = layout.split() @@ -412,7 +412,7 @@ class ConstraintButtonsPanel: self.space_template(layout, con) - def COPY_SCALE(self, context, layout, con): + def COPY_SCALE(self, _context, layout, con): self.target_template(layout, con) row = layout.row(align=True) @@ -428,7 +428,7 @@ class ConstraintButtonsPanel: self.space_template(layout, con) - def MAINTAIN_VOLUME(self, context, layout, con): + def MAINTAIN_VOLUME(self, _context, layout, con): row = layout.row() row.label(text="Free:") @@ -440,14 +440,14 @@ class ConstraintButtonsPanel: row.label(text="Convert:") row.prop(con, "owner_space", text="") - def COPY_TRANSFORMS(self, context, layout, con): + def COPY_TRANSFORMS(self, _context, layout, con): self.target_template(layout, con) self.space_template(layout, con) # def SCRIPT(self, context, layout, con): - def ACTION(self, context, layout, con): + def ACTION(self, _context, layout, con): self.target_template(layout, con) split = layout.split() @@ -474,7 +474,7 @@ class ConstraintButtonsPanel: col.prop(con, "frame_start", text="Start") col.prop(con, "frame_end", text="End") - def LOCKED_TRACK(self, context, layout, con): + def LOCKED_TRACK(self, _context, layout, con): self.target_template(layout, con) row = layout.row() @@ -485,7 +485,7 @@ class ConstraintButtonsPanel: row.label(text="Lock:") row.prop(con, "lock_axis", expand=True) - def LIMIT_DISTANCE(self, context, layout, con): + def LIMIT_DISTANCE(self, _context, layout, con): self.target_template(layout, con) col = layout.column(align=True) @@ -502,7 +502,7 @@ class ConstraintButtonsPanel: self.space_template(layout, con) - def STRETCH_TO(self, context, layout, con): + def STRETCH_TO(self, _context, layout, con): self.target_template(layout, con) row = layout.row() @@ -532,7 +532,7 @@ class ConstraintButtonsPanel: row.label(text="Plane:") row.prop(con, "keep_axis", expand=True) - def FLOOR(self, context, layout, con): + def FLOOR(self, _context, layout, con): self.target_template(layout, con) row = layout.row() @@ -547,7 +547,7 @@ class ConstraintButtonsPanel: self.space_template(layout, con) - def RIGID_BODY_JOINT(self, context, layout, con): + def RIGID_BODY_JOINT(self, _context, layout, con): self.target_template(layout, con, subtargets=False) layout.prop(con, "pivot_type") @@ -656,7 +656,7 @@ class ConstraintButtonsPanel: col.active = con.use_angular_limit_x col.prop(con, "limit_angle_max_x", text="Max") - def CLAMP_TO(self, context, layout, con): + def CLAMP_TO(self, _context, layout, con): self.target_template(layout, con) row = layout.row() @@ -665,7 +665,7 @@ class ConstraintButtonsPanel: layout.prop(con, "use_cyclic") - def TRANSFORM(self, context, layout, con): + def TRANSFORM(self, _context, layout, con): self.target_template(layout, con) layout.prop(con, "use_motion_extrapolate", text="Extrapolate") @@ -742,7 +742,7 @@ class ConstraintButtonsPanel: self.space_template(layout, con) - def SHRINKWRAP(self, context, layout, con): + def SHRINKWRAP(self, _context, layout, con): self.target_template(layout, con, False) layout.prop(con, "distance") @@ -776,14 +776,14 @@ class ConstraintButtonsPanel: row.active = con.use_track_normal row.prop(con, "track_axis", expand=True) - def DAMPED_TRACK(self, context, layout, con): + def DAMPED_TRACK(self, _context, layout, con): self.target_template(layout, con) row = layout.row() row.label(text="To:") row.prop(con, "track_axis", expand=True) - def SPLINE_IK(self, context, layout, con): + def SPLINE_IK(self, _context, layout, con): self.target_template(layout, con) col = layout.column() @@ -816,7 +816,7 @@ class ConstraintButtonsPanel: col.active = con.use_bulge_min or con.use_bulge_max col.prop(con, "bulge_smooth", text="Smooth") - def PIVOT(self, context, layout, con): + def PIVOT(self, _context, layout, con): self.target_template(layout, con) if con.target: @@ -876,7 +876,7 @@ class ConstraintButtonsPanel: layout.operator("clip.constraint_to_fcurve") - def CAMERA_SOLVER(self, context, layout, con): + def CAMERA_SOLVER(self, _context, layout, con): layout.prop(con, "use_active_clip") if not con.use_active_clip: @@ -903,7 +903,7 @@ class ConstraintButtonsPanel: layout.operator("clip.constraint_to_fcurve") - def TRANSFORM_CACHE(self, context, layout, con): + def TRANSFORM_CACHE(self, _context, layout, con): layout.label(text="Cache File Properties:") box = layout.box() box.template_cache_file(con, "cache_file") @@ -916,7 +916,7 @@ class ConstraintButtonsPanel: if cache_file is not None: box.prop_search(con, "object_path", cache_file, "object_paths") - def SCRIPT(self, context, layout, con): + def SCRIPT(self, _context, layout, _con): layout.label(text="Blender 2.6 doesn't support python constraints yet") def ARMATURE(self, context, layout, con): |